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:
moh
2026-09-20 16:42:58 +02:00
parent 3c2421fb8b
commit 80b1365ebc
+1 -1
View File
@@ -90,7 +90,7 @@ export default async function RootLayout({
<head> <head>
<style id="dynamic-site-theme">{buildSiteThemeStyleText(siteSettings.brand.primaryColor)}</style> <style id="dynamic-site-theme">{buildSiteThemeStyleText(siteSettings.brand.primaryColor)}</style>
</head> </head>
<body className={`${museo.variable} ${dubai.variable}`}> <body className={`${museo.variable} ${dubai.variable}`} suppressHydrationWarning>
<ThemeProvider> <ThemeProvider>
<SoundProvider> <SoundProvider>
{children} {children}