vue-router: Html remounts the whole page after hydration
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 30/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- javascript, typescript, vite
- 領域
- frontend
調査の方向性
The bug lies in the Html component of @tanstack/vue-start, which renders a Fragment instead of the hydrated Body vnode. Use the reproducer repo to observe the double mount, and inspect the component's hydration logic. An open PR #8816 already addresses this, so coordinate there. Done when the page stays mounted and only head teleport is added.
索引モデルが issue の本文から書いたものです。
説明
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 devin the reproducer. - Open http://localhost:3000 with the browser console open.
Home mountedlogs twice, and the heading animation plays twice.npm run build && npm run previewdoes 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.
- 主要言語
- TypeScript
- スター
- 15.3k
- フォーク
- 1.9k
- 平均マージ
- 1日 5時間
- マージ済み PR(30日)
- 46
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
TanStack/router のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
Masked navigation drops the first character of the hash each time (__tempLocation hash missing '#')対応中かも @hassanabrar202 が 8 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
router-generator: lazy-load Prettier (costs ~300–450ms per build even when formatting is off)対応中かも @Sheraff が 27 日前に担当しました。 オープンpackage: router-generator performance
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
router-generator: sibling `physical()` subtrees in a virtual route config generate duplicate identifiers対応中かも @Sheraff が 27 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
docs(router): clarify static title fallback in SPA mode対応中かも @Rohan-Dedhia が 17 日前に担当しました。 オープン
難易度 1/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
TanStack/router の issue をすべて見る
似ている issue
-
[BUG]: Shared links drop the configured basePath on GitHub Pages対応中かも @anshulchikhale30-p が今日担当しました。 オープンbug
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
StabilityNexus/IdentityTokens-EVM-Frontend#182 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Add: GTrekkerオープンcheck:passed streams:add
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
Koenkk/zigbee-herdsman-converters#13900 ·
メンテナーはふだん 1 日以内に返信
-
area: ui Bug Payload OSS
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
payloadcms/payload#19839 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
jeanibarz/knowledge-base-mcp-server#1291 ·
メンテナーはふだん 1 日以内に返信