在我拥有这个运行良好的解析器之前:
resolve() {
return forkJoin(
this.getData1(),
this.getData2(),
this.getData3()
);
}
现在我必须做一些实际上不起作用的事情:
resolve() {
return this.actions$
.pipe(
ofActionSuccessful(SomeSctonSuccess),
forkJoin(
this.getData1(),
this.getData2(),
this.getData3()
)
);
}
当我遇到这个错误时:
'Observable<[any, any, any, any]>' 类型的参数不能分配给'OperatorFunction' 类型的参数。类型 'Observable<[any, any, any, any]>' 与签名 '(source: Observable): Observable' 不匹配。
任何想法如何解决?
现在我注意返回我forkJoin
唯一ofActionSuccessful(SomeSctonSuccess)
的事情发生后https://ngxs.gitbook.io/ngxs/advanced/action-handlers