Skip to content

Commit

Permalink
fix: wrapping gallery with suspense
Browse files Browse the repository at this point in the history
  • Loading branch information
moolmin committed Nov 18, 2024
1 parent 171744c commit f58a97d
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/app/(pages)/4q-gallery/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,16 @@ import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import SearchParamsHandler from "./_components/search-params";

export default function Page() {
const searchParams = useSearchParams();

const [isSearchContainerVisible, setIsSearchContainerVisible] =
useState(false);
return (
<Suspense>
<GalleryContent />
</Suspense>
);
}

function GalleryContent() {
const searchParams = useSearchParams();
const [isSearchContainerVisible, setIsSearchContainerVisible] = useState(false);
const queryClient = new QueryClient();

const categoryParam = searchParams?.get("category") || "all";
Expand Down

0 comments on commit f58a97d

Please sign in to comment.