-
I'm trying to debug an odd situation we're seeing in one of our apps where an effect that ultimately calls our login API seems to be aborting in the middle. This effect is not, itself, marked as cancelable. The This earlier discussion describes a very similar issue, and while it wasn't resolved, @Sajjon's question about using the In our case, the effect that sees the cancellation is several chained actions & effects removed from
Does all of this happen within the same task (or task tree)? Would cancelling the original And, if this is the case, is there a good way to break that relationship? If we could prevent the cancellation of the original |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @sixten, you are correct that if sending 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. |
Beta Was this translation helpful? Give feedback.
Hi @sixten, you are correct that if sending
action1
causes an effect to start that sendsaction2
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 theRootStore
, 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…