Skip to content

Commit

Permalink
feat: 에러 핸들러를 사용하지 않는 전략일 경우 skip하도록 함
Browse files Browse the repository at this point in the history
  • Loading branch information
pakxe committed Dec 17, 2024
1 parent e629535 commit 4efbe3e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const QueryClientBoundary = ({children}: React.PropsWithChildren) => {
onError: (error: Error) => {
// errorBoundary로 처리해야하는 에러인 경우 updateAppError를 하지 못하도록 얼리리턴
if (error instanceof RequestGetError && error.errorHandlingStrategy === 'errorBoundary') return;
if (error instanceof RequestGetError && error.errorHandlingStrategy === 'unsubscribe') return;

updateAppError(error);
},
Expand Down

0 comments on commit 4efbe3e

Please sign in to comment.