-
I've always thought that calling the I tried to find out in the source code why this happens but couldn't find anywhere it should transform a subject into an anonymousSubject... Can you please explain to me where this happens 😅? (NB: Here is an example of what I did to figure out this https://stackblitz.com/edit/rxjs-nw7h6x?file=index.ts) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This is because The only problem is that this can't be easily done with TS, so the type definition for Related #6148 and #7201, quoting Ben Lesh:
This won't apply for v8.x, as lift was removed: #7202 |
Beta Was this translation helpful? Give feedback.
This is because
pipe
applies the operators one by one, and those use "lift", which keeps the original constructor intact #60The only problem is that this can't be easily done with TS, so the type definition for
pipe
returns an Observable, but it actually returns whatever the original observable type's.Related #6148 and #7201, quoting Ben Lesh: