fix(upgrade): handle output emitters when downgrading a component#60369
fix(upgrade): handle output emitters when downgrading a component#60369crisbeto wants to merge 1 commit intoangular:mainfrom
Conversation
792fd7c to
d76dc3d
Compare
There was a problem hiding this comment.
I went with checking for OutputEmitterRef, rather than EventEmitter here, because technically any observable can be an @Output.
There was a problem hiding this comment.
Couldn't we just always pass the closure directly without the object wrapper. Rxjs observables support that so its subclass EventEmitter should too?
There was a problem hiding this comment.
We can, but I was under the impression that signature was deprecated. I might be misremembering though...
There was a problem hiding this comment.
Ah now I remember, I think the signature with three arguments is deprecated. The one with a single argument should be fine. I'll switch it over.
The `DowngradeComponentAdapter` adapter was assuming that all outputs are observables, but they can also be `OutputEmitterRef`. Fixes angular#60366.
d76dc3d to
4b57f56
Compare
|
This PR was merged into the repository by commit cd7c170. The changes were merged into the following branches: main, 19.2.x |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
The
DowngradeComponentAdapteradapter was assuming that all outputs are observables, but they can also beOutputEmitterRef.Fixes #60366.