FIXED - Suppress body hydration warning from browser extensions
- Browser extensions (e.g. ColorZilla's cz-shortcut-listen) inject attributes on <body> before React hydrates, causing a benign hydration mismatch warning - Add suppressHydrationWarning to <body>, matching the existing <html>
This commit is contained in:
+1
-1
@@ -90,7 +90,7 @@ export default async function RootLayout({
|
||||
<head>
|
||||
<style id="dynamic-site-theme">{buildSiteThemeStyleText(siteSettings.brand.primaryColor)}</style>
|
||||
</head>
|
||||
<body className={`${museo.variable} ${dubai.variable}`}>
|
||||
<body className={`${museo.variable} ${dubai.variable}`} suppressHydrationWarning>
|
||||
<ThemeProvider>
|
||||
<SoundProvider>
|
||||
{children}
|
||||
|
||||
Reference in New Issue
Block a user