You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
I recently noticed that when triggering a
redo
the actionCreator is not called as is the case for anundo
.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?
The text was updated successfully, but these errors were encountered: