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

Revert #7276, but test garbage collection of ObservableQuery. #7695

Merged
merged 2 commits into from
Feb 12, 2021

Conversation

benjamn
Copy link
Member

@benjamn benjamn commented Feb 12, 2021

The deletion of observableQuery.options.context introduced by #7276 was a blunt solution to a hypothetical problem, so I agree with @francisu that it should be reverted if/when it causes anyone any problems: #7276 (comment)

Thanks to #7661, we now have a system for programmatically testing garbage collection of discarded objects, so we can actually enforce the expectation that the whole ObservableQuery is garbage collected after the last subscriber is removed (which tears down the ObservableQuery and removes it from the QueryManager).

Thanks to @francisu for pushing back on the reasoning behind #7276:
#7276 (comment)

Thanks to #7661, we now have a system for programmatically testing garbage
collection of discarded objects, so we can actually enforce the
expectation that the whole ObservableQuery is garbage collected after the
last subscriber is removed (which tears down the ObservableQuery and
removes it from the QueryManager).
@benjamn benjamn self-assigned this Feb 12, 2021
@benjamn benjamn added this to the Post 3.0 milestone Feb 12, 2021
@benjamn benjamn merged commit 7a022e6 into main Feb 12, 2021
@benjamn benjamn deleted the revert-ObservableQuery-context-deletion branch February 12, 2021 20:14
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants