Panel resets (back to Components, tree collapsed) and re-injects user-app.js on every same-document `history.replaceState`
I maintainer di solito rispondono entro 3 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 55/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
- Ambito
- developer-experience, devtools
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- TypeScript
- Stelle
- 2.9k
- Fork
- 292
- Merge medio
- 3g 22h
- PR unite (30g)
- 29
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di vuejs/devtools
-
[vite-plugin-vue-devtools] Component Inspector click triggers the inspected element's default action/handlersForse già presa @ValentinYoushkevich l’ha presa 7 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 69/100
I maintainer di solito rispondono entro 3 giorni
-
Upgrade Electron to fix ZIP extraction on Node.js 26Forse già presa @ondrhn l’ha presa 64 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 3 giorni
-
On the landing site, the "Developer experience" card is redundantForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
I maintainer di solito rispondono entro 3 giorni
-
`https://devtools.vuejs.org/guide/faq.html` was 404Forse già presa @ValentinYoushkevich l’ha presa 4 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
vuejs/devtools#975 · 1 commento ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 58/100
I maintainer di solito rispondono entro 3 giorni
Tutte le issue di vuejs/devtools
Issue simili
-
Report: Voyo Sport 1 HDApertaapproved check:passed streams:remove
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
Monthly Not a priority
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
Expensify/App#107229 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
GitTools/actions#2297 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
hiero-ledger/hiero-sdk-js#4793 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
microsoft/vscode-cosmosdb#3594 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno