Skip to content

Commit 27c6ef1

Browse files
committed
i18n: Wrap layout in Suspense (martinkr/next-export-i18n#74)
1 parent 9f8e35c commit 27c6ef1

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/app/layout.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { MantineProvider, ColorSchemeScript } from "@mantine/core";
55
import { cssResolver, theme } from "@/theme";
66
import { Header } from "@/components/header";
77
import { FooterSocial } from "@/components/footer";
8+
import { Suspense } from "react";
89

910
export const metadata: Metadata = {
1011
title: "Ruffle - Flash Emulator",
@@ -41,9 +42,11 @@ export default function RootLayout({
4142
</head>
4243
<body>
4344
<MantineProvider theme={theme} cssVariablesResolver={cssResolver}>
44-
<Header />
45-
{children}
46-
<FooterSocial />
45+
<Suspense>
46+
<Header />
47+
{children}
48+
<FooterSocial />
49+
</Suspense>
4750
</MantineProvider>
4851
</body>
4952
</html>

0 commit comments

Comments
 (0)