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

Redo only dispatches the action while Undo calls the actionCreator #11

Open
Tsourdox opened this issue Jan 9, 2019 · 0 comments
Open

Comments

@Tsourdox
Copy link

Tsourdox commented Jan 9, 2019

I recently noticed that when triggering a redo the actionCreator is not called as is the case for an undo.

This means that actionCreators which dispatches an undoable action can't have any other side effects such as an API call or dispatching another action since they won't be triggered with redo's.

One solution would be to put these side effects into the reducers but reducers should not have side effects.

How would you go about solving this issue without adding the API call into the reducers?

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

1 participant