-
-
Notifications
You must be signed in to change notification settings - Fork 98
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
Add a generic reducer factory automatically handling async-actions - createAsyncReducer #88
Comments
@issuehuntfest has funded $20.00 to this issue. See it on IssueHunt |
Hey, |
I don't think typecasting is a solution since this is such a generic reducer, that it needs to handle the types correctly before the concept can be widely used. |
@IssueHunt has funded $75.00 to this issue.
|
@sposterkil has funded $20.00 to this issue.
|
Is your feature request related to a problem?
It would be awesome to be able to build reducer factories which are based on async actions, that can in a generic way handle the payloads of that async action.
Who does this impact? Who is this for?
All users - as an example you could create an async action and create a reducer with a simple one liner for simple reducers like loading and error.
Example
The following example utilizes that all async failure actions return an Error object.
My
createLoadingReducer
does not care about any payloads thus my reducer function just takes anAnyAction
IssueHunt Summary
Backers (Total: $115.00)
Become a backer now!
Or submit a pull request to get the deposits!
Tips
IssueHunt has been backed by the following sponsors. Become a sponsor
The text was updated successfully, but these errors were encountered: