fix: add suppressHydrationWarning to app router layout (#16960)

This commit is contained in:
Benny Joo
2024-10-07 12:40:09 +02:00
committed by GitHub
parent ef7cac6c50
commit d8eb1df61d
+1
View File
@@ -67,6 +67,7 @@ export default async function RootLayout({ children }: { children: React.ReactNo
lang={locale}
dir={direction}
style={embedColorScheme ? { colorScheme: embedColorScheme as string } : undefined}
suppressHydrationWarning
data-nextjs-router="app">
<head nonce={nonce}>
{!!process.env.NEXT_PUBLIC_HEAD_SCRIPTS && (