Created
September 25, 2018 09:45
-
-
Save andycarrell/e7a3c689195cf4726526f72d12159711 to your computer and use it in GitHub Desktop.
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
// could you do something like this: | |
const actionsToTake = actions.filter(({ type }) => type.endsWith('_FAILURE')); | |
yield actionsToTake.map(action => takeEvery(action.type, genericSaga)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment