From 0442a8cb51514d6256f32d293225ef432225e2ad Mon Sep 17 00:00:00 2001 From: Chelitis <86283476+zumosik@users.noreply.github.com> Date: Fri, 13 Dec 2024 20:44:01 +0200 Subject: [PATCH] Update next.mdx --- apps/www/content/docs/dark-mode/next.mdx | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/www/content/docs/dark-mode/next.mdx b/apps/www/content/docs/dark-mode/next.mdx index 741d8494654..ff5af54b0a3 100644 --- a/apps/www/content/docs/dark-mode/next.mdx +++ b/apps/www/content/docs/dark-mode/next.mdx @@ -34,6 +34,7 @@ export function ThemeProvider({ ### Wrap your root layout Add the `ThemeProvider` to your root layout. +Make sure to include `suppressHydrationWarning` as a property on your `` tag. ```tsx {1,9-11} title="app/layout.tsx" import { ThemeProvider } from "@/components/theme-provider"