에러 처리

This commit is contained in:
focp212@naver.com
2025-11-05 16:59:57 +09:00
parent fe012cbda3
commit 87e9bb76de
4 changed files with 10 additions and 10 deletions

View File

@@ -42,10 +42,17 @@ export const GlobalAPIErrorBoundary = ({ children }: Props) => {
const { reset } = useQueryErrorResetBoundary();
const { key } = useLocation();
return (
/*
<ErrorBoundary
onReset={ reset }
resetKeys={ [key] }
FallbackComponent={ FallbackComponent }
>{ children }</ErrorBoundary>
*/
<ErrorBoundary
onReset={ reset }
resetKeys={ [key] }
fallback={ null }
>{ children }</ErrorBoundary>
);
};