在effects中使用yield all时,数组里传入三个put如

在页面中dispatch包含这个 all方法 的effects,在这个effects的then里面console一个字符串 这个字符串出现的位置在那四个put 的action的 start后 而不是在那三个put action最后执行的end的后面。
如果我单单的dispatch 那四个put 其中的一个action,在其then里面console一个字符串,这个字符串会在这个action的end后出现。
是不是使用all 会使得这个effect在执行完all中的put后马上就触发then而不是等待这三个put中的异步执行完。
将 put 替换成 put.resolve 或者 在 put 前 加上一个 yield
put 不会等待 相应的 effect 执行结束
docs:
https://redux-saga.js.org/docs/advanced/RunningTasksInParallel.html
https://redux-saga.js.org/docs/api/
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Most helpful comment
将
put替换成put.resolve或者 在 put 前 加上一个yieldput 不会等待 相应的 effect 执行结束
docs:
https://redux-saga.js.org/docs/advanced/RunningTasksInParallel.html
https://redux-saga.js.org/docs/api/