mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-09 00:56:37 +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}`}
|
className={`hide-scrollbar font-sans ${inter.variable}`}
|
||||||
suppressHydrationWarning
|
suppressHydrationWarning
|
||||||
>
|
>
|
||||||
<body className='hide-scrollbar font-sans antialiased'>
|
<body
|
||||||
|
className='hide-scrollbar font-sans antialiased'
|
||||||
|
suppressHydrationWarning
|
||||||
|
>
|
||||||
<ThemeProvider
|
<ThemeProvider
|
||||||
attribute='class'
|
attribute='class'
|
||||||
defaultTheme='system'
|
defaultTheme='system'
|
||||||
|
|||||||
Reference in New Issue
Block a user