Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // 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)
- };
Add Comment
Please, Sign In to add comment