Skip to content

Are subsequent effects executed (and cancelled) as part of the same Task tree? #3497

Answered by mbrandonw
sixten asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @sixten, you are correct that if sending action1 causes an effect to start that sends action2 which in turn also starts an effect, then the cancellation of the first effect will also cancel the second effect. This is a consequence of everything being run by the RootStore, and we agree that it can be a bit surprising. Fortunately we do have changes coming to the library that will allow us to fix this longstanding problem.

For the time being I have just added a test to capture this behavior (#3499). I can't think of a simple workaround right at this moment. I do have a question though: are you using the library's navigation tools (e.g. @Presents, ifLet, etc?). If so, then there typically…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sixten
Comment options

Answer selected by sixten
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants