Last active
May 28, 2017 20:35
-
-
Save joedski/97cdd15edadc9f578c594459cd94343a to your computer and use it in GitHub Desktop.
Javascript: Redux: Dispatching Multiple Actions: Redux Thunk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function multiAction(actions) { | |
return (dispatch) => actions.map(a => dispatch(a)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment