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

fix: memory leak in SSR caused by global tracking #1582

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

fabis94
Copy link
Contributor

@fabis94 fabis94 commented Jan 9, 2025

Surprised that no one had noticed or reported this before. I even read comments by people on other websites mentioning a memory leak they encountered in vue-apollo, but no one ever elaborated or reported it apparently.

onScopeDispose() does not work in SSR! Thus this bit of logic that keeps Vue EffectScopes in a map never gets cleaned up and your memory will get filled up with them

#1583

@Akryum Akryum merged commit b57f2be into vuejs:v4 Jan 9, 2025
6 checks passed
@fabis94
Copy link
Contributor Author

fabis94 commented Jan 10, 2025

@Akryum thanks for merging, when can we expect this to be out as a release?

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.

2 participants