Last active
January 25, 2019 14:05
-
-
Save hollygood/c2dfb6008310fc3edc9cd9003b95eaa5 to your computer and use it in GitHub Desktop.
Example for multiple actions sharing a same effect.
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
@Effect({dispatch: false}) | |
exampleFailure$: Observable<Action> = this.actions$.pipe( | |
ofType(SOME_ACTIONS.CREATE_USER_FAILURE, SOME_ACTIONS.CREATE_POST_FAILURE), | |
tap(action => { | |
this.router.navigate(['/users']) | |
}) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment