Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dispatch returns undefined in certain cases. #1

Open
tappleby opened this issue Aug 15, 2015 · 1 comment
Open

Dispatch returns undefined in certain cases. #1

tappleby opened this issue Aug 15, 2015 · 1 comment

Comments

@tappleby
Copy link

I brought up this issue in reduxjs/redux#481.

Im not sure if this can be solved from a code point of view but it might be worth documenting the issue with dispatch result being undefined in certain cases.

  • middleware needs to come after thunk, promise or any middleware where you expect a value to be returned.
  • with non-thunk actions you will not be able to access the return value.

Perhaps worth listing redux-batched-subscribe as an alternative.

@peteruithoven
Copy link

I agree. Especially since @tappleby removed redux-batched-updates from the Redux ecosystem docs: reduxjs/redux@dee3f07
Which is confusing because most of the issues and talk mentions redux-batched-updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants