We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
action creator creation for optimistic flow is a good point to reduce boilerplate with a factory function.
Each typical optimistic flow has 4 potential types of action:
According to the nature of action types, all of these actions maybe contains payload and/or meta.
The text was updated successfully, but these errors were encountered:
current solution:
const fetchTodos = { next: createAction('[Todos] fetch'), error: createAction('[Todos] fetch error', resolve => (error: Error) => resolve(error)), complete: createAction('[Todos] fetch complete', resolve => (todos: Todo[]) => resolve(todos)), cancel: createAction('[Todos] fetch cancel') }
I don't think a factory function would be handier than just a simple object.
Sorry, something went wrong.
No branches or pull requests
action creator creation for optimistic flow is a good point to reduce boilerplate with a factory function.
Detailed Description
Each typical optimistic flow has 4 potential types of action:
According to the nature of action types, all of these actions maybe contains payload and/or meta.
The text was updated successfully, but these errors were encountered: