Javascript 行动不';t在运行时第三次触发效果
效果在前两次动作调度时运行良好,但在第三次时不会触发。解决方案在中,对我不起作用。效果如下:Javascript 行动不';t在运行时第三次触发效果,javascript,angular,angular7,ngrx,ngrx-effects,Javascript,Angular,Angular7,Ngrx,Ngrx Effects,效果在前两次动作调度时运行良好,但在第三次时不会触发。解决方案在中,对我不起作用。效果如下: @Effect() getRoomsByRoomsList: Observable<IAction> = this.actions$.pipe( ofMap(commonEuropeanParliamentActions.GET_ROOMS_BY_ROOMS_LIST), withLatestFrom(this.store, (action, sta
@Effect()
getRoomsByRoomsList: Observable<IAction> = this.actions$.pipe(
ofMap(commonEuropeanParliamentActions.GET_ROOMS_BY_ROOMS_LIST),
withLatestFrom(this.store, (action, state) => ({state: state, action: action})),
exhaustMap((pAction: IStateAction) =>
this.getRooms(pAction).pipe(
switchMap((entity: any) => [
commonEuropeanParliamentActions.getSuccessRoomsByRoomsList(entity),
commonEuropeanParliamentActions.getSchedule(entity)
]),
catchError(() => of()),
)
),
);
@Effect()
getRoomsByRoomsList:Observable=this.actions$.pipe(
ofMap(CommonEuropeanCommissions.GET_ROOMS_BY_ROOMS_LIST),
withLatestFrom(this.store,(action,state)=>({state:state,action:action})),
排气图((压缩:IStateAction)=>
这是我的房间。管道(
switchMap((实体:任意)=>[
CommonEuropeanCommissionActions.getSuccessRoomsByRoomsList(实体),
CommonEuropeanActions.getSchedule(实体)
]),
catchError(()=>of()),
)
),
);
我也有类似的问题。问题是我的减速机。在我的减速机中发生了一些未处理的错误,因此效果停止工作
如果没有其他解决方案,您能检查一下您的案例中是否也存在这一问题吗?您真的想在这里使用排气图吗?为什么不合并地图?@Knostradamus合并地图不起作用。我想这可能是你的问题。