Last active
December 19, 2017 23:59
-
-
Save mvbattan/a7bcc3dcd5d8239df862e8b772297cd7 to your computer and use it in GitHub Desktop.
Compose Injections
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
const actionCreators = { | |
fetchSomething: () => composeInjections( | |
baseThunkAction(actions.FETCH, 'fetchTarget', Service.fetch), | |
withPostSuccess(dispatch => dispatch(navigationActions.push('/successRoute'))), | |
withStatusHandling({ 404: dispatch => dispatch(navigationActions.push('/failureRoute')) }) | |
) | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment