Skip to content

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
@ddanilyuk ddanilyuk mentioned this pull request Jun 24, 2025
3 tasks
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

3 participants