id, title, category, status, canonical_id, aliases, duplicate_of, source_trust_level, confidence_score, verification_status, tags, raw_sources, last_reinforced, github_commit, tech_stack
id
title
category
status
canonical_id
aliases
duplicate_of
source_trust_level
confidence_score
verification_status
tags
raw_sources
last_reinforced
github_commit
tech_stack
wiki-2026-0508-error-handling-and-stability
Error Handling and Stability
10_Wiki/Topics
verified
self
Frontend Error Boundaries
Error Recovery
none
A
0.9
applied
errors
stability
observability
sentry
2026-05-10
pending
language
framework
TypeScript
React/Vue
Error Handling and Stability
매 한 줄
"매 frontend stability = error 의 isolation + telemetry + graceful degradation." . 매 single uncaught error가 매 SPA 의 전체 white-screen 의 유발 — 매 ErrorBoundary, global handlers (window.onerror, unhandledrejection), 매 Sentry-class telemetry 가 필수. 매 2026의 트렌드는 React 19 ErrorBoundary + Sentry + Replay + AI-driven root-cause clustering.
매 핵심
매 layers
Component : React ErrorBoundary, Vue errorCaptured, Svelte <svelte:boundary>.
Async : try/catch, Promise .catch, unhandledrejection listener.
Global : window.onerror, window.onunhandledrejection.
Network : fetch retry, circuit breaker, AbortController.
매 telemetry 기둥
Capture (stack, breadcrumb, source map).
Group (fingerprint, dedup).
Alert (threshold, regression).
Replay (Sentry / LogRocket — DOM reconstruction).
매 응용
SPA route-level boundary — 매 chunk load fail 의 reload prompt.
Form submission retry with exponential backoff.
Feature flag fallback when remote config unavailable.
Service Worker offline shell.
💻 패턴
1. React ErrorBoundary (class)
2. react-error-boundary (functional)
3. Global handlers
4. Chunk load failure recovery
5. Fetch retry with backoff
6. AbortController on unmount
7. Sentry init (2026)
8. Vue 3 errorHandler
매 결정 기준
상황
Approach
Component-local fail
ErrorBoundary at route level.
Async fail
try/catch + telemetry.
Chunk 404 (deploy mid-session)
lazyWithRetry + reload.
Transient 5xx
Exponential backoff retry.
Auth expired
Refresh token interceptor.
기본값 : Sentry + Replay + per-route ErrorBoundary + global handlers.
🔗 Graph
🤖 LLM 활용
언제 : ErrorBoundary scaffolding, retry helper 작성, Sentry config.
언제 X : 매 root-cause analysis from minified stack — 매 source map upload 필수.
❌ 안티패턴
Swallow errors : 매 catch {} 빈 — 매 silent fail.
No source map : 매 prod stack 의 a.b.c — 매 debug X.
Boundary at root only : 매 한 component fail이 매 entire app crash.
Console.error as monitoring : 매 user 의 console 의 도달 X — telemetry 필수.
🧪 검증 / 중복
Verified (Sentry docs, react.dev error boundary).
신뢰도 A.
🕓 Changelog
날짜
변경
2026-05-08
Phase 1
2026-05-10
Manual cleanup — Error boundary + Sentry 2026 patterns