에러 처리
This commit is contained in:
@@ -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>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user