我最近从Angular 5更新到Angular 6。
我收到了这个警告:combineLatest已弃用:不再支持resultSelector,请使用pipe到map
。 Rxjs版本为6.1.0,tslint为5.10.0,Angular CLI为6.0.0,Typescript 2.7.2。我像这样使用它:
const a$ = combineLatest(
this.aStore.select(b.getAuth),
this.cStore.select(b.getUrl),
(auth, url) => ({auth, url}),
);
我也尝试过这样做:
empty().pipe(
combineLatest(...),
...
)
但这给了我一个提示:combineLatest已被废弃:建议改用静态的combineLatest
,同时empty也被废弃了,建议使用其静态版本。