How to wait until multiple actions, triggered with one dispatcher, complete?
See original GitHub issueFor example, i have one action Clear
and many stores which are listening to it, how to do something only after Clear
action is completed in all stores?
Issue Analytics
- State:
- Created 7 years ago
- Comments:17 (9 by maintainers)
Top Results From Across the Web
How can I get redux-saga to wait for two actions to happen at ...
I need to create a saga that loads the initial state for the redux store from my API server. This involves using two...
Read more >Can I dispatch multiple actions from Redux action creators?
Dispatching arrays In this case, you're clearly only dispatching one array object, even if the action objects it contains are then individually ...
Read more >Saga misses multiple actions dispatched within the same ...
So you'd have to dispatch the 2 api calls in one batch, and take the ... 2- discard the incoming action if the...
Read more >Different Ways to Dispatch Actions with Redux - Pluralsight
No single option is considered the best, as it fully depends on our use case. Let's look at the various ways to dispatch...
Read more >API Reference - Redux-Saga
Creates an Effect description that instructs the middleware to wait for a specified action on the Store. The Generator is suspended until an...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Reopened. The fact that the original asker moved on does not resolve the issue.
My bad. I thought you said that you had a situation where you had 1 action and many stores listening and needed to know when that action was emitted to all stores.
Either way, returning promises on an action call sounds good. I’m gonna look into adding that.