apollo icon indicating copy to clipboard operation
apollo copied to clipboard

@vue/apollo-composable causes memory leak in SSR

Open fabis94 opened this issue 1 year ago • 3 comments

Describe the bug @vue/apollo-composable causes memory leak in SSR, enough said I think

To Reproduce Install latest version (4.2.1) in your SSR app (e.g. Nuxt) and invoke any of the loading tracking utilities: useQueryLoading, useMutationLoading or any of the other ones.

Then trigger a bunch of requests and you'll see your memory is gonna be slowly filling up - voila you have a leak!

Expected behavior no memory leak

Versions vue: 3.5.1 vue-apollo: 4.2.1 @apollo/client: 3.12.4

Additional context Add any other context about the problem here.

fabis94 avatar Jan 09 '25 12:01 fabis94

fix: https://github.com/vuejs/apollo/pull/1582

fabis94 avatar Jan 09 '25 12:01 fabis94

fix: #1582

Hey @Akryum, when can we expect this to be included in a release? The company project I am working on has issues with this and we would really appreciate this fix 🙏

TomHeinemeyer avatar Mar 07 '25 13:03 TomHeinemeyer

@TomHeinemeyer we ended up publishing a fork with this fix merged in, you can use it if you like for the time being: @speckle/[email protected]

fabis94 avatar Mar 07 '25 13:03 fabis94