Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Capture errors at the boundaries

Đang mở
#911 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 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
50/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
frontend, observability

Hướng nghiên cứu

Bắt đầu từ useGlobalErrorHook và lần theo đường dẫn window.error hiện có, sau đó kiểm tra cách Sentry.init({ app }) hiện cung cấp tính năng xử lý lỗi của Vue. Thêm xử lý unhandledrejection thông qua đường dẫn dùng chung, khử trùng lặp và lọc các lỗi vô hại; xác nhận hành vi toast dự kiến trước khi triển khai. Được xem là hoàn tất khi các lỗi tại các ranh giới được liệt kê được ghi nhận mà không làm ngập danh sách thông báo.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

useGlobalErrorHook only listens for window.error. Async failures — most of what
VolView does — reach nothing: no toast, no bug report, no console entry. Vue render
errors are uncaught too, since Sentry.init({ app }) was the only thing installing
app.config.errorHandler, and Sentry is not configured in deployments.

Scope
  • Handle unhandledrejection, routed through the same path as window.error
  • Dedupe repeated errors — a broken render fires on every re-render and would flood the message list
  • Extend the benign-filter list (precedent: the existing ResizeObserver loop filter) as noise surfaces
  • Follow-up: install app.config.errorHandler
Note

The code is small; the blast radius isn't. These failures are silent today, so
capturing them will surface a batch of benign rejections — aborted fetches, cancelled
loads, workers torn down mid-flight.

Open question: should newly-captured errors toast like window.error does, or land
quietly in console + bug report until the noise is known?

Ngôn ngữ chính
TypeScript
Star
303
Fork
102
Merge trung bình
2 ngày 4 giờ
Pull request đã merge (30 ngày)
19

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Kitware/VolView

Tất cả issue của Kitware/VolView

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.