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
Obviously this doesn't work, as actionCreators is not a list of actions. The workaround I've implemented was to create my own traverseActionMap(actionMap) function which returns an array of all the action creator endpoints of a given actionMap. This in turn allows me to use the following syntax:
I think it would be great if the combineActions function were to be extended to accept an actionMap parameter and automatically combine the actions for you given the instance you want to map several actions to the same reducer function.
The text was updated successfully, but these errors were encountered:
Let's say I use
createActions(actionMap)
to create my actions for a given component.Example:
All of these actions will use the same reducer:
I would like to be able to use the following syntax so as to not reproduce the entire map in my reducer:
Obviously this doesn't work, as actionCreators is not a list of actions. The workaround I've implemented was to create my own
traverseActionMap(actionMap)
function which returns an array of all the action creator endpoints of a given actionMap. This in turn allows me to use the following syntax:I think it would be great if the combineActions function were to be extended to accept an actionMap parameter and automatically combine the actions for you given the instance you want to map several actions to the same reducer function.
The text was updated successfully, but these errors were encountered: