Created
December 11, 2017 21:43
-
-
Save mvbattan/806400d57fba01206dd991c0844e8f50 to your computer and use it in GitHub Desktop.
Complete Reducer - before
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 reducerDescription: { | |
[actions.GET_MATCHES]: onLoading(), | |
[actions.GET_MATCHES_SUCCESS]: onSuccess(), | |
[actions.GET_MATCHES_FAILURE]: onFailure(), | |
[actions.GET_PITCHES]: onLoading(), | |
[actions.GET_PITCHES_SUCCESS]: onSuccess(), | |
[actions.GET_PITCHES_FAILURE]: onFailure(), | |
[actions.INCREMENT_COUNTER]: onAdd() | |
}; | |
export default createReducer(initialState, reducerDescription); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment