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

Detached dom nodes increases with Transition + Suspense #12777

Open
huang-julien opened this issue Jan 24, 2025 · 0 comments
Open

Detached dom nodes increases with Transition + Suspense #12777

huang-julien opened this issue Jan 24, 2025 · 0 comments

Comments

@huang-julien
Copy link
Contributor

huang-julien commented Jan 24, 2025

Vue version

3.5.13

Link to minimal reproduction

https://github.com/huang-julien/vue-transition-suspense-repro
https://stackblitz.com/github/huang-julien/vue-transition-suspense-repro?file=README.md

Steps to reproduce

  • open chrome devtools -> performance monitor
  • check DOM nodes (+ JS heap size)
  • click on swap button a lot of times
  • see that DOM Nodes increases and never get flushed. You can also profile the detached elements in the memory tab of the chrome devtools

Image

What is expected?

DOM Nodes should be flushed

What is actually happening?

It seems like DOM Nodes are kept in a pending branch of Suspense.

We also have this issue with nuxt's pages when enabling transitions. Curiously, JS heap mem seems to flush correctly.

System Info

Any additional comments?

original issue: nuxt/nuxt#30718

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

No branches or pull requests

1 participant