mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-26 15:48:32 -06:00
trying to get nextjs fast
This commit is contained in:
@@ -1,19 +1,9 @@
|
||||
import { dehydrate, HydrationBoundary, QueryClient } from "@tanstack/react-query";
|
||||
import CourseList from "./CourseList";
|
||||
import { hydrateCourses } from "@/hooks/hookHydration";
|
||||
import { getQueryClient } from "./providersQueryClientUtils";
|
||||
|
||||
|
||||
export default async function Home() {
|
||||
const queryClient = getQueryClient();
|
||||
await hydrateCourses(queryClient);
|
||||
const dehydratedState = dehydrate(queryClient);
|
||||
|
||||
return (
|
||||
<main className="min-h-screen">
|
||||
<HydrationBoundary state={dehydratedState}>
|
||||
<CourseList />
|
||||
</HydrationBoundary>
|
||||
<CourseList />
|
||||
</main>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user