Panel resets (back to Components, tree collapsed) and re-injects user-app.js on every same-document `history.replaceState`
メンテナーはふだん 3 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 55/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript
調査の方向性
Start with the chrome.devtools.network.onNavigated handler in dist/devtools-panel.js and trace how it resets the panel and injects dist/user-app.js. Reproduce the behavior with history.replaceState(history.state, '') while the Vue panel is open, then inspect the existing heartbeat or backend state mentioned in the issue. Done means same-document history updates preserve the panel state and avoid reinjection, while real document navigation still initializes the backend.
索引モデルが issue の本文から書いたものです。
説明
Environment
- Vue DevTools Chrome extension 7.7.7 (latest on the Chrome Web Store)
- Chrome 157.0.8103.39, macOS 27.2
- Vue 3.5.28, @inertiajs/vue3 / @inertiajs/core 2.3.18, Quasar 2.18.6
What happens
While scrolling an Inertia 2 page, the DevTools panel resets itself: it switches from whatever tab is open (e.g. Timeline) back to Components, and the component tree collapses to Root > Inertia > EditPage. The Network tab shows chrome-extension://nhdogjmejiglipccpnnnanhbledajbpd/dist/user-app.js (~1 MB) requested again each time. The page itself does not reload (a window variable set before scrolling survives).
Cause (as far as I can tell)
- Inertia 2 saves the document scroll position in history state: a debounced (100 ms) window
scrolllistener callshistory.saveDocumentScrollPosition(), which ends inhistory.replaceState(). The URL does not change. - The panel (
dist/devtools-panel.js) re-injects the backend onchrome.devtools.network.onNavigated:chrome.devtools.network.onNavigated.addListener(() => { // reset + inject dist/user-app.js again }) - So every pause in scrolling counts as a navigation and restarts DevTools. With Inertia 1.x (which only saved
scroll-regionelements, not the window scroll) this did not happen.
Reproduction
- Any Inertia 2 app (Vue 3) with a page taller than the viewport.
- Open DevTools → Vue panel, expand a few levels of the component tree, or switch to Timeline.
- Scroll the page and stop (fast flick to the top/bottom, or drag the scrollbar).
- The panel jumps back to Components with the tree collapsed; Network shows a new
user-app.jsrequest.
Minimal check without Inertia: in the Console of any Vue 3 page, run history.replaceState(history.state, '') with the Vue panel open.
Expected
A same-document history update (replaceState / pushState with no document load) should not reset the panel or re-inject the backend. Only a real document navigation should.
Possible fix
In the onNavigated handler, check whether the backend is still alive (e.g. the existing heartbeat, or window.__VUE_DEVTOOLS_GLOBAL_HOOK__ / a backend flag via inspectedWindow.eval) before resetting and re-injecting.
- 主要言語
- TypeScript
- スター
- 2.9k
- フォーク
- 292
- 平均マージ
- 3日 22時間
- マージ済み PR(30日)
- 29
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
vuejs/devtools のほかの issue
-
[vite-plugin-vue-devtools] Component Inspector click triggers the inspected element's default action/handlers対応中かも @ValentinYoushkevich が 7 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 69/100
メンテナーはふだん 3 日以内に返信
-
Upgrade Electron to fix ZIP extraction on Node.js 26対応中かも @ondrhn が 64 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 3 日以内に返信
-
On the landing site, the "Developer experience" card is redundant再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
メンテナーはふだん 3 日以内に返信
-
`https://devtools.vuejs.org/guide/faq.html` was 404対応中かも @ValentinYoushkevich が 4 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
vuejs/devtools#975 · コメント 1 件 ·
メンテナーはふだん 3 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
メンテナーはふだん 3 日以内に返信
似ている issue
-
approved check:passed streams:remove
難易度 1/5 1時間未満 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
Monthly Not a priority
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
Expensify/App#107229 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
GitTools/actions#2297 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
hiero-ledger/hiero-sdk-js#4793 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
microsoft/vscode-cosmosdb#3594 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信