Skip to content

Commit ede1884

Browse files
committed
feat: GamesNearPage Suspense로 감싸기
1 parent e00a31b commit ede1884

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/routes/router.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ export const router = createBrowserRouter([
2323
{ path: 'players/:id', element: <h1>players</h1> },
2424
{
2525
path: 'games/near',
26-
element: <GamesNearPage />,
26+
element: (
27+
<Suspense>
28+
<GamesNearPage />
29+
</Suspense>
30+
),
2731
},
2832
{
2933
path: 'games/host',

0 commit comments

Comments
 (0)