From e9ee9004fbba08a1ee0b68fa9ccb6290acfab64e Mon Sep 17 00:00:00 2001 From: Debanjum Date: Wed, 9 Apr 2025 09:02:57 +0530 Subject: [PATCH] Suppress spurious dark mode hydration warnings on the web app This is triggered by mismatch between "dark" class present on server sent layout but not in client sent layout on initial render. That mismatch exists because the server applies dark-mode styling early to avoid FOUC flickering of UX. Related 43e032e --- src/interface/web/app/layout.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/interface/web/app/layout.tsx b/src/interface/web/app/layout.tsx index b825f4ac..ce7056f4 100644 --- a/src/interface/web/app/layout.tsx +++ b/src/interface/web/app/layout.tsx @@ -48,7 +48,11 @@ export default function RootLayout({ children: React.ReactNode; }>) { return ( - +