Skip to content

Commit

Permalink
fix: CartList에도 Suspense 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
xodms0309 committed May 25, 2023
1 parent f8f322c commit 2132e93
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/router/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@ const router = createBrowserRouter(
},
{
path: '/cart',
element: <CartList />,
element: (
<Suspense>
<CartList />
</Suspense>
),
errorElement: <NotFound />,
},
],
{ basename: process.env.PUBLIC_URL }
Expand Down

0 comments on commit 2132e93

Please sign in to comment.