Which project does this relate to?#
Start
Describe the bug#
After hydration, Html renders Fragment([body, teleport]) in place of the Body vnode that it hydrated. The root vnode type changes, so Vue unmounts the hydrated page and mounts it again. Every component on the page mounts twice, and CSS animations start again.
Complete minimal reproducer#
https://github.com/pyyupsk/vue-start-html-remount
Steps to Reproduce the Bug#
- Run
npm install && npm run dev in the reproducer.
- Open http://localhost:3000 with the browser console open.
Home mounted logs twice, and the heading animation plays twice. npm run build && npm run preview does the same.
Expected behavior#
The hydrated page stays mounted. Only the head teleport is added.
Screenshots or Videos#
No response
Platform#
- Router / Start Version: @tanstack/vue-router 1.170.42, @tanstack/vue-start 1.169.4
- OS: Windows (dev server in WSL2)
- Browser: Helium (Chromium 156.0.8078.47)
- Browser Version: 0.20.1.1
- Bundler: vite
- Bundler Version: 8.3.5
Additional context#
Possibly related to #6764. I used AI help to find the cause.