-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: ErrorBoundary 사용 방식 변경 및 간소화 (#477)
* refactor: 불필요한 stringify 제거 * refactor: APIError status 타입 지정 * refactor: shouldIgnore 파라미터 타입을 제네릭으로 변경 * feat: BaseFunction type 추가 * feat: resolveFunctionOrPrimitive 유틸 함수 추가 * refactor: APIBoundary onError > ignore로 변경 * refactor: APIError의 method가 get이 아니라면 ignore true로 설정 * refactor: Error field 수정 - ignore > IGNORE_KEY * refactor: ignore 인터페이스 수정 - boolean도 사용할 수 있도록 변경 * refactor: ErrorBoundary 인터페이스 수정 - mustCatch 추가 - ignore > shouldIgnore로 변경 - EndOfBoundary > CriticalBoundary로 변경 - 기존 shouldIgnore 유틸 함수 > isIgnored로 변경 * chore: nvmrc 추가 v18.16.1 * feat: Loading 컴포넌트 추가 * refactor: 기존 QueryBoundary 사용을 Loading, Suspense로 변경
- Loading branch information
Showing
14 changed files
with
98 additions
and
98 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
v18.16.1 | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { PropsWithChildren, Suspense } from 'react'; | ||
|
||
import LoadingSpinner from '../LoadingSpinner/LoadingSpinner'; | ||
|
||
const Loading = ({ children }: PropsWithChildren) => ( | ||
<Suspense fallback={<LoadingSpinner />}>{children}</Suspense> | ||
); | ||
|
||
export default Loading; |
File renamed without changes.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.