forkJoin is deprecated: resultSelector is deprecated, pipe to map instead

前端 未结 6 2498
栀梦
栀梦 2020-12-15 02:45

I\'m working on an Angular 6 project.

Running ng lint gives the following Warning:

"forkJoin is deprecated: resultSelector is deprecated,

6条回答
  •  旧时难觅i
    2020-12-15 03:06

    I was able to fix this by getting rid of the ellipsis:

    forkJoin(observables).subscribe();

    As long as observables is already an array, it should have the same result.

提交回复
热议问题