Suppress hydration warnings on body element
Add suppressHydrationWarning to body element in addition to html element to properly suppress dark theme class mismatch warnings during React hydration. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Haiku 4.5
parent
6c1053e985
commit
4dfbffc9ce
+1
-1
@@ -60,7 +60,7 @@ export default async function RootLayout({ children }: { children: React.ReactNo
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</head>
|
</head>
|
||||||
<body className="flex min-h-screen flex-col">
|
<body suppressHydrationWarning className="flex min-h-screen flex-col">
|
||||||
<LogoutOnUnload />
|
<LogoutOnUnload />
|
||||||
<CurrencyProvider>
|
<CurrencyProvider>
|
||||||
{showMaintenance ? (
|
{showMaintenance ? (
|
||||||
|
|||||||
Reference in New Issue
Block a user