-
If ALL of the combineLatest operator overloads have been deprecated, what is the expected replacement when you're in the middle of a pipe chain? Imagine you currently have this: a$.pipe(
filter(...),
switchMap(...),
map(...),
etc(...),
combineLatest([b$, c$])
) First... why is that wrong? What's so bad about it that it had to be deprecated? But moving on... What's the correct replacement? Is it expected that we restructure that to this? combineLatest([
a$.pipe(
filter(...),
switchMap(...),
map(...),
etc(...)
),
b$,
c$
]) or this? a$.pipe(
filter(...),
switchMap(...),
map(...),
etc(...),
switchMap(val => combineLatest([of(val), b$, c$]))
) I'm not even sure that last one will work? If |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The replacement should be named in the deprecation message: FWIW, the deprecation messages are being worked on ATM. When done, each will contain a link to a document that will explain in detail the reason for the deprecation and the changes that developers need to make to avoid relying upon what's deprecated. |
Beta Was this translation helpful? Give feedback.
The replacement should be named in the deprecation message:
rxjs/src/internal/operators/combineLatest.ts
Line 9 in df51b04
FWIW, the deprecation messages are being worked on ATM. When done, each will contain a link to a document that will explain in detail the reason for the deprecation and the changes that developers need to make to avoid relying upon what's deprecated.