Dissmiss multiple views at once #582
Unanswered
2farellano
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello there, thanks for all the work you guys are doing. currently we're exploring TCA and we faced a situation where we have 3 screens A -> B -> C and from C we need to return to A. each screen has its own state and reducer with the appropriate pullback so A can listen events on B and B on C... however in the Implementation I was able to do when I try to dismiss everything ( from C all the way back to A ) I got a
This is because B for some reason was trying to update the state when A set State to nil.
Here is the sample code:
NOTE: When going back one by one everything works fine. ( A -> B -> C -> B -> A )
issue.mov
NOTE 2:
Adding a delay of 0.1 seconds makes the implementation above to work as expected however I'll prefer not to rely on an arbitrary delay since the problem might still there.
Any ideas how can I implement that functionality?
Beta Was this translation helpful? Give feedback.
All reactions