-
Notifications
You must be signed in to change notification settings - Fork 14
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 injecting a custom argument #9
Comments
Hey @jedmao, thanks for the suggestion! I remember seeing this when I was building out this module and using redux thunk as a reference. However, for the first release I wanted to keep things simple. I'll certainly consider adding this in in future :) |
PRs are also welcome! |
If no one's working on it. Can I create a PR? |
I've experimented with this and I didn't find a solution I was totally happy with. It would be very helpful to see other approaches and maybe we can work together for a common solution (: definitely give it a shot |
You might also consider the solution described in #10 |
Redux-thunk has a feature where you can inject a custom argument.
I think this library can support the same feature if it were implemented like so:
helpers/useThunkReducer.js
An implementation of this might look like thus:
The text was updated successfully, but these errors were encountered: