【发布时间】:2021-01-04 02:49:48
【问题描述】:
我有管道,当发生一些错误时它会返回of{}。所以我需要将它过滤到其他代码流中。目前我使用了以下 senario。我需要知道,有什么方法可以删除地图并在现有过滤器中过滤它?
readonly k$ = combineLatest(
[this.x$.pipe(filter(isNotNullOrUndefined), //this filter not filtering of{} type.
map((res: A) => { //need to remove this map
return res;
})
), this.y$]).pipe(shareReplayUntil(this.destroySub));
【问题讨论】:
标签: typescript rxjs ngrx rxjs-pipeable-operators