Created
July 27, 2018 12:45
-
-
Save amanjuneja3012/341c2786e4ad2564d1ebe0358e818a97 to your computer and use it in GitHub Desktop.
When use case required us to fetch from multiple reducer's
This file contains 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 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