Skip to content

Instantly share code, notes, and snippets.

@mvbattan
Created December 11, 2017 17:53
Show Gist options
  • Select an option

  • Save mvbattan/a16c2f2c285489aa8099d532438254d9 to your computer and use it in GitHub Desktop.

Select an option

Save mvbattan/a16c2f2c285489aa8099d532438254d9 to your computer and use it in GitHub Desktop.
Selectors
// 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