Created
August 2, 2019 08:46
-
-
Save ngohungphuc/745e573fe8eab5da63afee210b15ed1b to your computer and use it in GitHub Desktop.
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
//from the reducer | |
//export common use selector for your selector | |
export const { | |
selectAll, | |
selectEntities, | |
selectIds, | |
selectTotal | |
} = adapter.getSelectors(); | |
//from the selector | |
import * as fromUser from "user.reducer"; | |
export const selectedNodes = createSelector( | |
selectUserState, | |
fromUser.selectAll | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment