mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-26 15:48:32 -06:00
hot reloading is better
This commit is contained in:
@@ -3,8 +3,7 @@ import "./globals.css";
|
||||
import { dehydrate } from "@tanstack/react-query";
|
||||
import { hydrateCourses } from "@/hooks/hookHydration";
|
||||
import { createQueryClientForServer } from "@/services/utils/queryClientServer";
|
||||
import MyQueryClientProvider from "@/services/utils/MyQueryClientProvider";
|
||||
|
||||
import Providers from "./providers";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Canvas Manager 2.0",
|
||||
@@ -18,18 +17,16 @@ export async function getDehydratedClient() {
|
||||
return dehydratedState;
|
||||
}
|
||||
|
||||
export default async function RootLayout({
|
||||
export default function RootLayout({
|
||||
children,
|
||||
}: Readonly<{
|
||||
children: React.ReactNode;
|
||||
}>) {
|
||||
const dehydratedState = await getDehydratedClient();
|
||||
|
||||
return (
|
||||
<html lang="en">
|
||||
<MyQueryClientProvider dehydratedState={dehydratedState}>
|
||||
<body className="bg-slate-950">{children}</body>
|
||||
</MyQueryClientProvider>
|
||||
<Providers>
|
||||
<body className="bg-slate-950">{children}</body>
|
||||
</Providers>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user