비동기 및 에러 처리 관련 문서 작성#2
Open
Cyjin-jani wants to merge 2 commits intomainfrom
Open
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.
Summary
React 애플리케이션에서 비동기 처리와 에러 대응을 일관되게 설계하기 위한 핵심 지침 문서를 보강했습니다.
Suspense/Boundary 기반 선언적 처리, 실패 격리, 다중 쿼리 동시성, 에러 복구 기준을 팀 공통 규칙으로 정리하는 것이 목적입니다.
배경
프로젝트에서 비동기 처리와 에러 처리를 하는 경우, 아래와 같은 반복 이슈가 있었습니다.
isLoading/isError분기가 컴포넌트마다 반복되어 Happy Path가 흐려짐resetKeys기준이 모호함이 문제들에 대해 팀 차원의 일관된 판단 기준을 문서로 정리했습니다.
팀 합의 내용
useQueries선택QueryErrorResetBoundary+resetKeys로 재시도/초기화 기준 명시작성한 문서
docs/async-error-handling/declarative-async-basics.mduseSuspenseQuery중심 선언적 패턴 정리, 예외 케이스(enabled, mutation 에러)의 명시적 처리 원칙 보강docs/async-error-handling/boundary-design.mddocs/async-error-handling/suspense-query-concurrency.mddocs/async-error-handling/error-handling-strategy.mdresetKeys운영 기준 및 사용자 중심 메시지 원칙 보강docs/async-error-handling/index.md변경 파일
docs/async-error-handling/declarative-async-basics.md(신규)docs/async-error-handling/boundary-design.md(신규)docs/async-error-handling/suspense-query-concurrency.md(신규)docs/async-error-handling/error-handling-strategy.md(신규)docs/async-error-handling/index.md(지침 업데이트)docs/.vitepress/config.mts(사이드바 네비게이션 추가)