[G1-Sync] Manual knowledge update
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: P-REINFORCE-AI-ERROR-BOUNDARY
|
||||
id: [[P-Reinforce]]-AI-ERROR-BOUNDARY
|
||||
category: "10_Wiki/💡 Topics/AI"
|
||||
confidence_score: 0.99
|
||||
tags: [React, Patterns, Resilience, Reliability]
|
||||
tags: [React, Patterns, [[Resilience]], [[Reliability]]]
|
||||
last_reinforced: 2026-04-20
|
||||
---
|
||||
|
||||
@@ -14,7 +14,7 @@ last_reinforced: 2026-04-20
|
||||
## 📖 구조화된 지식 (Synthesized Content)
|
||||
- **The Core Problem**: 리액트에서는 렌더링 중 발생한 하나의 에러가 처리되지 않으면 전체 컴포넌트 트리가 해제되어 화면이 하얗게 변함(White screen of death).
|
||||
- **Implementation**:
|
||||
- `componentDidCatch`와 `getDerivedStateFromError` 생명주기 메서드를 가진 클래스 컴포넌트로 구현.
|
||||
- `componentDidCatch`와 `getDerived[[State]]FromError` 생명주기 메서드를 가진 클래스 컴포넌트로 구현.
|
||||
- 에러 발생 시 상태를 업데이트하고 부모 쪽에서 에러 로그를 전송(Sentry 등).
|
||||
- **Graceful Degradation**: 에러가 난 특정 위젯만 "데이터를 불러오지 못했습니다"라고 표시하고 나머지 앱 기능은 정상 유지.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user