Chain Actions in an Effect in @ngrx
问题 I am having some trouble chaining actions one after the other in an Effect that makes an HTTP-request. Here's the Effect code: export class UserEffects { @Effect() update$: Observable<Action> = this.actions$.ofType(user.USERCHANGE).pipe( switchMap(data => this.authService.login(data['payload'])), map(userInfo => new UserChangedAction(userInfo)), tap(() => this.store.dispatch( new LoginStateChangeAction(localStorage.getItem('token'))) ) ); constructor(private authService: AuthService, private