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

fixed subscriptions leak #1248

Merged
merged 1 commit into from
May 3, 2022
Merged

fixed subscriptions leak #1248

merged 1 commit into from
May 3, 2022

Conversation

lueurxax
Copy link
Contributor

@lueurxax lueurxax commented Aug 22, 2021

Problem

For example code from URL https://apollo.vuejs.org/guide/components/subscribe-to-more.html#examples-of-updatequery on changing variables in query and subscriptions. On changing variables in query each subscriptions(in this._linkedSubscriptions) stopping and starting after query. On addSmartSubscription we push to _linkedSubscriptions current subscription. On change variables in ApolloSubscribeToMore we triggered addSmartSubscription and old subscriptions pushed in this._linkedSubscriptions.

Resolve

deduplicate this._linkedSubscriptions on adding to _linkedSubscriptions

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.

None yet

2 participants