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

actions return a promise with Promise middleware #10

Closed
ShMcK opened this issue Oct 12, 2017 · 0 comments
Closed

actions return a promise with Promise middleware #10

ShMcK opened this issue Oct 12, 2017 · 0 comments

Comments

@ShMcK
Copy link
Member

ShMcK commented Oct 12, 2017

This is very useful when doing things like navigating away after an action is completed.

dispatch.something.do()
.then(() => dispatch.navigate.somePage())

Can be handled with Redux Promise middleware. See DVA example.

It may be better to implement our own Promise middleware than to depend on an additional package.

@ShMcK ShMcK modified the milestones: React Integration v0.2, v0.2 Oct 12, 2017
@ShMcK ShMcK mentioned this issue Oct 15, 2017
@ShMcK ShMcK removed this from the v0.2 milestone Oct 19, 2017
blairbodnar added a commit that referenced this issue Oct 24, 2017
closes #10. add promise middleware to dispatches
Repraance pushed a commit to Repraance/redox that referenced this issue Jan 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant