vue-router: Html remounts the whole page after hydration

オープン
#8,815 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@pyyupsk がすでに取り組んでいます。

2026年10月25日 から。

  • #8816 @pyyupsk による — オープン

評価

難易度
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
  1. Run npm install && npm run dev in the reproducer.
  2. Open http://localhost:3000 with the browser console open.
  3. 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.

主要言語
TypeScript
スター
15.3k
フォーク
1.9k
平均マージ
1日 5時間
マージ済み PR(30日)
46

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

TanStack/router のほかの issue

TanStack/router の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。