Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

fix(core): cleanup testability subscriptions #61261

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
Loading
from

Conversation

arturovt
Copy link
Contributor

This commit prevents leaking memory when the application is destroyed and subscriptions are still alive.

@pullapprove pullapprove bot requested a review from devversion May 11, 2025 10:59
@angular-robot angular-robot bot added the area: core Issues related to the framework runtime label May 11, 2025
@ngbot ngbot bot added this to the Backlog milestone May 11, 2025
}),
);

this._destroyRef.onDestroy(() => {
Copy link
Member

Choose a reason for hiding this comment

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

Wouldn't takeUntilDetroyed be more adequate ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It becomes a circular dependency (core depends on rxjs-interop and vice versa).

@devversion devversion requested a review from atscott May 12, 2025 10:59
@devversion
Copy link
Member

@thePunderWoman thePunderWoman added action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release labels May 16, 2025
@thePunderWoman
Copy link
Contributor

@arturovt Looks like there's a circular dependency added here.

@thePunderWoman thePunderWoman added action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews and removed action: merge The PR is ready for merge by the caretaker labels May 16, 2025
@arturovt arturovt force-pushed the fix/core-testability-subscriptions branch from 9660fe5 to c1dff20 Compare May 16, 2025 10:11
This commit prevents leaking memory when the application is destroyed and subscriptions are still alive.
@arturovt arturovt force-pushed the fix/core-testability-subscriptions branch from c1dff20 to bc57aff Compare May 16, 2025 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews 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.

4 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.