You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Astro v3.0.9
Node v19.7.0
System Windows (x64)
Package Manager npm
Output static
Adapter none
Integrations auto-import
@astrojs/tailwind
@astrojs/svelte
@astrojs/mdx
@astrojs/preact
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
We're having issues with a potential memory leak - if you navigate in the docs several times (especially on an intensive route like /extras examples) - the amount of DOM nodes and JS listeners jumps up drastically.
It seems that Svelte components and listeners aren't destroyed on navigation. I thought it'd get fixed by this PR but I doesn't help our case #8264
Let me know if it's maybe something that we're doing wrong or if I can help in any way to pinpoint it better.
I created this PR to anchor the docs in time as a reproduction. The fastest way to cause the leak is to click through the sidebar of Extras
jerzakm
changed the title
Potential ViewTransitions leak with Svelte components
Potential ViewTransitions memory leak with Svelte components
Sep 6, 2023
Hey guys, I just happened to be reading the code for the Svelte integration out of interest for my own use-case, and I noticed that there was a missing reference to element in the file, so the unmount event never gets fired. Which led me to find this issue. Hope the info helps:
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
We're having issues with a potential memory leak - if you navigate in the docs several times (especially on an intensive route like /extras examples) - the amount of DOM nodes and JS listeners jumps up drastically.
It seems that Svelte components and listeners aren't destroyed on navigation. I thought it'd get fixed by this PR but I doesn't help our case
#8264
Let me know if it's maybe something that we're doing wrong or if I can help in any way to pinpoint it better.
I created this PR to anchor the docs in time as a reproduction. The fastest way to cause the leak is to click through the sidebar of Extras
What's the expected result?
Dom/listener numbers closer to this
Link to Minimal Reproducible Example
threlte/threlte#601
Participation
The text was updated successfully, but these errors were encountered: