fix(layout): suppress hydration warning caused by browser extensions

Browser extensions (Grammarly, etc.) inject attributes into <body>
after SSR, causing React hydration mismatches. suppressHydrationWarning
silences the noise without affecting functionality.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Gal Inbar 2026-04-29 10:50:20 +03:00
commit 96dfd0fbab

View file

@ -14,7 +14,7 @@ export const metadata = {
export default function RootLayout({ children }) {
return (
<html lang="en">
<body className={inter.variable}>{children}</body>
<body className={inter.variable} suppressHydrationWarning>{children}</body>
</html>
);
}