我最近从Angular 5更新到Angular 6.
我收到了这个警告combineLatest is deprecated: resultSelector no longer supported, pipe to map instead.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}),
);
Run Code Online (Sandbox Code Playgroud)
我也尝试过这样:
empty().pipe(
combineLatest(...),
...
)
Run Code Online (Sandbox Code Playgroud)
但是这给了我:combineLatest is deprecated: Deprecated in favor of static combineLatest而且对于静态版本也不推荐使用empty.