-
Notifications
You must be signed in to change notification settings - Fork 24.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(core): ensure takeUntilDestroyed unregisters onDestroy listener on unsubscribe #49901
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch! A couple nits but overall LGTM
979f3e3
to
37c7731
Compare
HI @atscott, thank you for the feedback. |
37c7731
to
dd217a3
Compare
…n unsubscribe The takeUntilDestroyed must always remove the onDestroy listener, in the teardown logic.
dd217a3
to
2056b03
Compare
This PR was merged into the repository by commit c029c67. |
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 current behavior?
The takeUntilDestroyed function does not remove onDestroy listener on unsubscribe.
What is the new behavior?
The takeUntilDestroyed function removes onDestroy listener on unsubscribe.
Does this PR introduce a breaking change?
Other information