Skip to content

refactor(core): test EventEmitter completion on destroy with outputToObservable#58239

Closed
cexbrayat wants to merge 1 commit intoangular:mainfrom
cexbrayat:test/destroy-ref-event-emitter
Closed

refactor(core): test EventEmitter completion on destroy with outputToObservable#58239
cexbrayat wants to merge 1 commit intoangular:mainfrom
cexbrayat:test/destroy-ref-event-emitter

Conversation

@cexbrayat
Copy link
Member

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.dev application / infrastructure changes
  • Other... Please describe:

What is the new behavior?

A unit test has been added to check that EventEmitter properly completes upon component/directive destrouction when used with outputToObservable. It explains why destroyRef has to be injected in EventEmitter in the first place.

This is a follow-up to #58219 With this test, the PR would have failed.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

…Observable

A unit test has been added to check that `EventEmitter` properly completes upon component/directive destrouction when used with `outputToObservable`.
It explains why `destroyRef` has to be injected in `EventEmitter` in the first place.
@cexbrayat cexbrayat requested a review from devversion October 17, 2024 06:19
@angular-robot angular-robot bot added the area: core Issues related to the framework runtime label Oct 17, 2024
@ngbot ngbot bot added this to the Backlog milestone Oct 17, 2024
Copy link
Member

@devversion devversion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@devversion devversion added action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release labels Oct 17, 2024
@devversion
Copy link
Member

This PR was merged into the repository by commit a8d4eb8.

The changes were merged into the following branches: main, 18.2.x

devversion pushed a commit that referenced this pull request Oct 17, 2024
…Observable (#58239)

A unit test has been added to check that `EventEmitter` properly completes upon component/directive destrouction when used with `outputToObservable`.
It explains why `destroyRef` has to be injected in `EventEmitter` in the first place.

PR Close #58239
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Nov 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: core Issues related to the framework runtime target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants