Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
✨ 작업 배경 #
현재 패키지의 문제점
패키지 명칭과 기능의 불일치
패키지 이름: @dhlab/error-boundary
실제 제공 기능: ApiErrorBoundary만 지원
문제: 패키지 이름은 일반적이지만 API 에러 처리에만 특화된 기능만 제공
의존성 관리의 불편함
현재: react-error-boundary를 peerDependencies로 별도 설치 필요
문제: 사용자가 에러 바운더리를 사용하기 위해 추가 패키지 설치가 필요
결과: 설치 과정 복잡화 및 버전 충돌 가능성
기능 확장성 부족
현재: API 에러 처리에만 특화
필요: 일반적인 에러 바운더리 기능 + 고급 기능 (ignoreError 등)
문제: 다양한 에러 처리 요구사항을 충족하지 못함
해결 방안
일반 ErrorBoundary 구현
react-error-boundary를 기반으로 한 확장된 ErrorBoundary 구현
핵심 추가 기능: ignoreError 옵션으로 특정 에러 무시 가능
기존 react-error-boundary의 모든 기능 지원 (fallback, resetKeys, onError 등)
종속성 해결
react-error-boundary의 모든 기능을 BaseErrorBoundary로 재내보내기
사용자가 추가 패키지 설치 없이 모든 에러 바운더리 기능 사용 가능
버전 충돌 문제 해결
💻 작업 내용 #
🏃 기능 동작 시연 #
💬 코멘트 #