Refactor/error handling#83
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
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.
개요
close #82
카테고리
상세 내용
기존에는 오류가 발생했을 때 처리 방식이 일관적이지 않아
페이지 전체가 붕괴되거나 기본 React Router 에러 화면이 노출되는 문제가 있었습니다.
이를 해결하기 위해 오류의 종류별로 책임 범위를 분리하고,
사용자 경험(UX)을 최대한 유지하는 방향으로 에러 레이어를 정의했습니다.
1) 404 NotFoundPage — 잘못된 경로 접근
2) RouteErrorPage — 라우팅된 페이지 내부 에러
errorElement로 처리3) SectionErrorBoundary — 기능 단위 오류
4) API Error — 네트워크/스키마 에러