Created
December 11, 2017 17:53
-
-
Save mvbattan/a16c2f2c285489aa8099d532438254d9 to your computer and use it in GitHub Desktop.
Selectors
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
| // if action.payload is like: { matches: [] }; | |
| const reducerDescription = { | |
| // This will store the array of matches instead of the whole object comming from payload | |
| [actions.GET_MATCHES_SUCCESS]: onSuccess(action => action.payload.matches) | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment