Last active
April 11, 2017 11:14
-
-
Save brakmic/7ea9406991f99da5ae49ae945eca593c to your computer and use it in GitHub Desktop.
helper methods for state extraction
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
export function getCustomerState(state$: Observable<IAppState>): Observable<ICustomerState> { | |
return state$.select(state => state.customerState); | |
} | |
export const getCustomer: (obs: Observable<IAppState>) => Observable<ICustomer> = compose(fromSubstates.getCustomer, getCustomerState); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment