Skip to content

Commit

Permalink
fix(wrap with suspense)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeddnyx committed Jul 20, 2024
1 parent ce4be3c commit 3085794
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions components/component/pagination/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"use client"
"use client";
import PaginationUi from "@/components/ui/component/Pagination";
import { Suspense } from "react";

export default function Index() {
const pagination = {
Expand All @@ -8,7 +9,10 @@ export default function Index() {
};
return (
<div>
<PaginationUi pagination={pagination} />
{/* Since we use useSearchParams, need to wrap with suspense */}
<Suspense>
<PaginationUi pagination={pagination} />
</Suspense>
</div>
);
}

0 comments on commit 3085794

Please sign in to comment.