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

Update optimism and fix potential cache.watch memory leak. #7157

Merged
merged 3 commits into from
Oct 13, 2020

Conversation

benjamn
Copy link
Member

@benjamn benjamn commented Oct 13, 2020

Inspired by @kamilkisiela's comment, but building on the new optimistic.forget method that I added in benjamn/optimism#84.

Should fix #7149 and #7086.

Copy link
Member

@hwillson hwillson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome @benjamn - thanks!

@benjamn benjamn force-pushed the update-optimism-and-fix-memory-leak branch from 0ed907b to fe37d2e Compare October 13, 2020 17:49
@benjamn benjamn merged commit 2e8cce1 into main Oct 13, 2020
@benjamn benjamn deleted the update-optimism-and-fix-memory-leak branch October 13, 2020 17:52
@JakeBeresford
Copy link

Should this also have been merged back to 2.x?

I'm currently working though a memory leak in a vue ap, vue-apollo isn't currently using apollo-client 3.x

i'm not sure that this is the fix for my current issue, but merging this back to 2.6.11 would potentially help others!

@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.

AC3: Memory leak in watchQuery retains context object in memory even after unsubscribe
3 participants