Replies: 2 comments
-
Hi @BeetLab, I don't believe this is actually possible. First, based on the code you shared above, the And further, effects are completed when they are canceled and so should not be able to emit any data from a cancelled effect. If you believe you are seeing otherwise then can you provide a minimal project that reproduces the problem? Ideally this would be done as a unit test that fails that you believe should pass. And please try to include only the essential details and remove as many superfluous parts as possible. |
Beta Was this translation helpful? Give feedback.
-
Well, you are right. I didn't manage to reproduce the issue in unit tests, but looks like there's something in out project's setup that changes the behaviour (will check). Just in case - here's a test with setup I've had in out project (and no runtime warnings after completing the effect - maybe because of test store using?) |
Beta Was this translation helpful? Give feedback.
-
Hi! I've met an unexpected (for me) behaviour of Effect.
I have timeout effect, that is cancelled when main peace of work finishes. But even after cancellation of
Tokens.timeout
the Task inside can still send action and it would be consumed by the corresponding reducer. Why is send still usable after Effect cancellation?I understand, that Task inside Effect is top-level and doesn't know about Effect's task cancellation, but why the
send
can still be usable?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions