mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-09-29 14:06:36 +08:00
fix(frontend): suppress body hydration warning from extensions
Browser extensions can inject classes like vc-init onto body before React hydrates; ignore attribute mismatches on body.
This commit is contained in:
@@ -42,7 +42,10 @@ export default async function RootLayout({
|
||||
className={`hide-scrollbar font-sans ${inter.variable}`}
|
||||
suppressHydrationWarning
|
||||
>
|
||||
<body className='hide-scrollbar font-sans antialiased'>
|
||||
<body
|
||||
className='hide-scrollbar font-sans antialiased'
|
||||
suppressHydrationWarning
|
||||
>
|
||||
<ThemeProvider
|
||||
attribute='class'
|
||||
defaultTheme='system'
|
||||
|
||||
Reference in New Issue
Block a user