Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/408.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angular/32.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 行动不';t在运行时第三次触发效果_Javascript_Angular_Angular7_Ngrx_Ngrx Effects - Fatal编程技术网

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合并地图不起作用。我想这可能是你的问题。