Skip to content

Commit

Permalink
add Suspense wrapper to root layout
Browse files Browse the repository at this point in the history
  • Loading branch information
jnsdls committed Jan 31, 2025
1 parent 69a921d commit a41ec96
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/login/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type { Metadata } from "next";
import { Fira_Code, Inter } from "next/font/google";
import { Suspense } from "react";

import "./globals.css";
import { Providers } from "./providers";
Expand Down Expand Up @@ -30,7 +31,9 @@ export default function RootLayout({
<body
className={`${sansFont.variable} ${monoFont.variable} h-full w-full font-sans antialiased`}
>
<Providers>{children}</Providers>
<Providers>
<Suspense>{children}</Suspense>
</Providers>
</body>
</html>
);
Expand Down

0 comments on commit a41ec96

Please sign in to comment.