question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to wait until multiple actions, triggered with one dispatcher, complete?

See original GitHub issue

For 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:open
  • Created 7 years ago
  • Comments:17 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
BryanGrezeszakcommented, Nov 19, 2016

Reopened. The fact that the original asker moved on does not resolve the issue.

0reactions
BryanGrezeszakcommented, Nov 19, 2016

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found