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

Support Promises #17

Open
Justinohallo opened this issue Mar 20, 2020 · 1 comment
Open

Support Promises #17

Justinohallo opened this issue Mar 20, 2020 · 1 comment

Comments

@Justinohallo
Copy link

The Redux Dispatch will return a promise, allowing you to chain actions after the dispatch has taken place.

While the native useReducer dispatch does not return a promise, would it make sense for this Thunk implementation to do so?

@nathanbuchar
Copy link
Owner

Wouldn't be a bad idea, I guess I haven't used Redux in a while so thunks returning promises is new to me. I'll be honest though this isn't high on my list, but I'd welcome a PR :)

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