-
Notifications
You must be signed in to change notification settings - Fork 26.2k
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
base: main
Are you sure you want to change the base?
Conversation
}), | ||
); | ||
|
||
this._destroyRef.onDestroy(() => { |
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.
Wouldn't takeUntilDetroyed
be more adequate ?
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.
It becomes a circular dependency (core depends on rxjs-interop and vice versa).
@arturovt Looks like there's a circular dependency added here. |
9660fe5
to
c1dff20
Compare
This commit prevents leaking memory when the application is destroyed and subscriptions are still alive.
c1dff20
to
bc57aff
Compare
This commit prevents leaking memory when the application is destroyed and subscriptions are still alive.