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

Utility for binding action creators to action dispatchers #33

Open
tlaundal opened this issue Nov 19, 2019 · 0 comments
Open

Utility for binding action creators to action dispatchers #33

tlaundal opened this issue Nov 19, 2019 · 0 comments

Comments

@tlaundal
Copy link
Contributor

For some actions, we know they are not intended to be used in namespaced contexts. In those cases, adding dispatchAction around each call of the action creator is just added cruft and noise.

We should consider creating a utility bindAction(actionCreator, action$), that can do this binding when the action is created (or in each file it's used?), by returning a wrapped action creator that actually dispatches the action as it is created.

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