Skip to content

Commit dc74c3b

Browse files
authored
add Suspense wrapper to root layout (#6124)
1 parent 69a921d commit dc74c3b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

apps/login/src/app/layout.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import type { Metadata } from "next";
22
import { Fira_Code, Inter } from "next/font/google";
3+
import { Suspense } from "react";
34

45
import "./globals.css";
56
import { Providers } from "./providers";
@@ -30,7 +31,9 @@ export default function RootLayout({
3031
<body
3132
className={`${sansFont.variable} ${monoFont.variable} h-full w-full font-sans antialiased`}
3233
>
33-
<Providers>{children}</Providers>
34+
<Providers>
35+
<Suspense>{children}</Suspense>
36+
</Providers>
3437
</body>
3538
</html>
3639
);

0 commit comments

Comments
 (0)