Panel resets (back to Components, tree collapsed) and re-injects user-app.js on every same-document `history.replaceState`
Maintainer thường phản hồi trong vòng 3 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 55/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
- Lĩnh vực
- developer-experience, devtools
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- TypeScript
- Star
- 2.9k
- Fork
- 292
- Merge trung bình
- 3 ngày 22 giờ
- Pull request đã merge (30 ngày)
- 29
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của vuejs/devtools
-
[vite-plugin-vue-devtools] Component Inspector click triggers the inspected element's default action/handlersCó thể đã có người làm @ValentinYoushkevich đã nhận 7 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 69/100
Maintainer thường phản hồi trong vòng 3 ngày
-
Upgrade Electron to fix ZIP extraction on Node.js 26Có thể đã có người làm @ondrhn đã nhận 64 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 3 ngày
-
On the landing site, the "Developer experience" card is redundantCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 3 ngày
-
`https://devtools.vuejs.org/guide/faq.html` was 404Có thể đã có người làm @ValentinYoushkevich đã nhận 4 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
vuejs/devtools#975 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
Maintainer thường phản hồi trong vòng 3 ngày
Tất cả issue của vuejs/devtools
Issue tương tự
-
Report: Voyo Sport 1 HDĐang mởapproved check:passed streams:remove
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Monthly Not a priority
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Expensify/App#107229 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
GitTools/actions#2297 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
hiero-ledger/hiero-sdk-js#4793 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
microsoft/vscode-cosmosdb#3594 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày