Repeated navigation in an Inertia/Vue application causes the Vue Devtools Chrome extension (7.7.7) to become progressively slower.
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ó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 58/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
- Lĩnh vực
- devtools
Hướng nghiên cứu
Start by locating initDevToolsServerListener() and tracing how it registers handlers on devtools.ctx.hooks through the birpc interface. Check how the broadcast instance behaves during teardown and reconnection before deciding whether an initialization guard is safe. Done means repeated initialization no longer adds duplicate handlers or causes redundant messages, while reconnection behavior remains correct.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
fix: prevent duplicate DevTools server listener registration
##created with help of AI
Problem
Repeated navigation in an Inertia/Vue application causes the Vue Devtools Chrome extension (7.7.7) to become progressively slower.
Investigation revealed that initDevToolsServerListener() can be invoked repeatedly through the birpc interface. Each invocation registers additional handlers on devtools.ctx.hooks, without checking whether those handlers have already been registered.
After several navigations, the internal hook registry contained 45 distinct handlers for each of the following events:
routerInfoUpdatedsendInspectorTreeToClientsendInspectorStateToClient
This caused thousands of redundant inspector and router messages, despite relatively few Vue component lifecycle events.
Fix
Make initDevToolsServerListener() idempotent using a module-scoped initialization guard.
Subsequent RPC calls no longer register duplicate listeners.
Verification
- Reproduced with Vue 3.5.42 and Inertia 2.1.6.
- Reproduced using a minimal Vue application without Pinia or Vue Router.
- Confirmed repeated
initDevToolsServerListener()RPC invocations using Chrome's debugger. - Confirmed accumulation of 45 distinct callbacks per internal messaging hook.
- Verified that deduplicating listeners and preventing further registration resolves the performance degradation.
Considerations
The guard assumes that the underlying RPC broadcast instance remains valid across subsequent initialization requests.
Connection teardown and reconnection behavior should be verified before merging.
- 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ó 4/5 3-5 ngày Mức phù hợp với người mới 55/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