Last active
March 23, 2021 07:51
-
-
Save mfp22/31572a60f1d4df4a4f2ef845831060b9 to your computer and use it in GitHub Desktop.
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
@Effect getUsers$ = this.actions$.pipe( | |
ofType('GET_USERS'), | |
withLatestFrom(this.userSelectors.needUsers$), | |
filter(([action, needUsers]) => needUsers), | |
switchMap(() => this.getUsers()), | |
map(users => ({type: 'RECEIVE_USERS', users})), | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment