Skip to content

Commit

Permalink
feat: 에러바운더리 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
hjiwon committed Nov 8, 2023
1 parent 0b9cf71 commit 99e3d2e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/pages/home/HomePage.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
import { Suspense } from 'react';
import ErrorBoundary from 'commons/ErrorBoundary';
import GNB from 'layouts/GNB';
import Home from './Home';

const HomePage = () => {
return (
<div>
<GNB />
<Suspense fallback={<div>Loading...</div>}>
<Home />
</Suspense>
<ErrorBoundary>
<Suspense fallback={<div>Loading...</div>}>
<Home />
</Suspense>
</ErrorBoundary>
</div>
);
};
Expand Down

0 comments on commit 99e3d2e

Please sign in to comment.