Skip to content
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(cdk/a11y): clean up list key manager on destroy #25715

Merged
merged 1 commit into from Sep 29, 2022

Conversation

crisbeto
Copy link
Member

Historically we haven't needed to do any cleanup for the ListKeyManager, because it didn't contain any rxjs subscriptions. Over time we've accumulated more functionality which now needs to be cleaned up.

These changes introduce a destroy method and calls it in all the relevant places. I also removed any places where we previously had to do manual cleanup.

Fixes #25537.

@crisbeto crisbeto added P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent target: patch This PR is targeted for the next patch release labels Sep 28, 2022
@crisbeto crisbeto force-pushed the 25537/list-key-manager-destroy branch 2 times, most recently from 4c5a828 to a6a77a4 Compare September 28, 2022 08:58
Historically we haven't needed to do any cleanup for the `ListKeyManager`, because it didn't contain any rxjs subscriptions. Over time we've accumulated more functionality which now needs to be cleaned up.

These changes introduce a `destroy` method and calls it in all the relevant places. I also removed any places where we previously had to do manual cleanup.

Fixes angular#25537.
@crisbeto crisbeto force-pushed the 25537/list-key-manager-destroy branch from a6a77a4 to 9e12c4a Compare September 28, 2022 09:10
@crisbeto crisbeto marked this pull request as ready for review September 28, 2022 09:18
Copy link
Contributor

@mmalerba mmalerba left a comment

Choose a reason for hiding this comment

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

LGTM

@mmalerba mmalerba added target: minor This PR is targeted for the next minor release and removed target: patch This PR is targeted for the next patch release labels Sep 28, 2022
@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Sep 29, 2022
@crisbeto crisbeto merged commit b5f15f4 into angular:main Sep 29, 2022
@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 Oct 30, 2022
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 P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent target: minor This PR is targeted for the next minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug(ListKeyManager): ListKeyManager contain rxjs subscription memory leaks
2 participants