Replies: 2 comments
-
@gilgtm Having But after some thought, it made less sense for |
Beta Was this translation helpful? Give feedback.
-
Thanks, that makes sense! I'm still wondering when do you use one approach or the other? Copying @stephencelis's answer to my follow-up from slack so I don't lose it:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
TCA seems to be of a dual mind when it comes to swallowing
CancellationError
. Wrap your operation in aTaskResult
and then you have to handle theCancellationError
in the received action. Alternatively, pass a throwing operation intoEffect.run
and it will automatically swallow yourCancellationError
.What's the reason for these differences in cancellation handling and how do you decide between these two approaches?
Beta Was this translation helpful? Give feedback.
All reactions