动作在第三次运行时不会触发效果
Action doesn't trigger effect the THIRD time when it runs
Effects 在前两次调度动作时完美运行,但在第三次调度时不触发 time.The and 中的解决方案对我不起作用。效果如下:
@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()),
)
),
);
我也遇到了类似的问题。问题出在我的减速器上。在我的减速器中发生了一些未处理的错误,结果,效果停止工作。
如果其他解决方案都不起作用,你能检查一下你的情况是否也是这个问题吗?
Effects 在前两次调度动作时完美运行,但在第三次调度时不触发 time.The
@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()),
)
),
);
我也遇到了类似的问题。问题出在我的减速器上。在我的减速器中发生了一些未处理的错误,结果,效果停止工作。
如果其他解决方案都不起作用,你能检查一下你的情况是否也是这个问题吗?