Skip to content

Instantly share code, notes, and snippets.

@amanjuneja3012
Created July 27, 2018 12:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amanjuneja3012/341c2786e4ad2564d1ebe0358e818a97 to your computer and use it in GitHub Desktop.
Save amanjuneja3012/341c2786e4ad2564d1ebe0358e818a97 to your computer and use it in GitHub Desktop.
When use case required us to fetch from multiple reducer's
const profilemapState = (state) => ({
pilotUnavailabilityCount : state.get('pilotReducer').get('pilotUnavailabilityCount'),
...customMapState(state, 'profileReducer')
})
export const ProfileComp = connect(profilemapState, actions)(customPropsToJSIfNeeded(Profile));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment