Replies: 1 comment 1 reply
-
To identify or dig more, I would love to know when exactly that effects is getting canceled. I think that would be very helpful. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey folks,
I was having some issues when a parent action was canceled, the long-chain effect is getting canceled as well. To explain the issue I used the TCA
VoiceMemos
example app. To reproduce the issue, here are the steps:VoiceMemos
reducerinstead of
return .none
4. Of course you need to include the
clock
dependencyFrom this code what do we expect?
state.voiceMemos
is saving the new recordingBut that doesn't happen in that case.
After digging more and more I found following code is the culprit:
Basically when recording is ending, somehow it's canceling my sleeping task but why is that? If I change that code instead of the recording then everything is just working fine and I'm getting the sleeping print nicely. Please correct me if I'm thinking something wrong here.
Beta Was this translation helpful? Give feedback.
All reactions