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

Invalidate child store subscriptions #3646

Merged
merged 2 commits into from
Apr 7, 2025
Merged

Conversation

stephencelis
Copy link
Member

In the current design of TCA, child stores must subscribe via the root store firehose of updates, and these subscriptions can grow over time and eventually lead to a performance issue. This branch attempts to mitigate the problem by terminating subscriptions on invalidated stores, i.e. after an optional store is dismissed.

Fixes #3634.

@stephencelis stephencelis requested a review from mbrandonw April 4, 2025 20:35
@stephencelis stephencelis marked this pull request as ready for review April 7, 2025 21:57
@stephencelis stephencelis merged commit cf4177a into main Apr 7, 2025
27 of 28 checks passed
@stephencelis stephencelis deleted the core-firehose-isinvalid branch April 7, 2025 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Potential memory leak in child store caching
2 participants