refactor(core): avoid injecting DestroyRef in EventEmitter#58219
refactor(core): avoid injecting DestroyRef in EventEmitter#58219cexbrayat wants to merge 1 commit intoangular:mainfrom
Conversation
`destroyRef` is never used in `EventEmitter` so we can spare the injection and leave it undefined. The field still needs to be there as it is declared in the `OutputRef` interface.
|
Removing It's optional for cases where |
|
As @devversion says, this is required for |
|
@devversion @alxhub Ok thanks 👍 But is it normal that no test fail when the injection is removed then? |
|
@cexbrayat we should have one. I do see a few for clean-up tests for |
|
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. |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the new behavior?
destroyRefis never used inEventEmitterso we can spare the injection and leave it undefined. The field still needs to be there as it is declared in theOutputRefinterface.Does this PR introduce a breaking change?
Other information