You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have following demo: https://codesandbox.io/s/redux-toolkit-sync-listener-mg3g4m?file=/src/index.ts
Here i have two tasks: parent (runs somewhere in application) and child (runs from parent)
Use case:
startParentTask
actioneffect
forparent
taskstartChildTask
and wait for it to finish (withtake
method)finishChildTask
actionExpected behavior:
parent task listener takes
finishChildTask
action and dispatches it's ownfinishParentTask
actionActual behavior:
Nothing happens
If i make child task asynchronous and add something like
delay
, it works as expectedIs it bug or i misunderstood something?
Beta Was this translation helpful? Give feedback.
All reactions