Created
September 13, 2016 15:44
-
-
Save kastigar/2b770559e8821212debb5b404bd148ca 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
export const addStep = actionCreator( | |
setType('addStep'), | |
withReducer.inPath('turn.steps', (atom, card) => [...atom, card]), | |
); | |
export const finishTurn = actionCreator( | |
setType('finishTurn'), | |
withReducer.inPath('turn.done', () => true), | |
); | |
export const unfinishTurn = actionCreator( | |
setType('unfinishTurn'), | |
withReducer.inPath('turn.done', () => false), | |
withReducer.inPath('turn.steps', () => []), | |
); | |
export const selectOption = actionCreator( | |
setType('selectOption'), | |
withReducer.inPath('turn.analyzed', (atom, option) => [...atom, option]), | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment