Skip to content

🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.

Update ThemeProvider configuration to disable transition on theme change

Bill Yang5120d1f05d7c
diff --git a/client/src/app/layout.tsx b/client/src/app/layout.tsx
index 80f3eec94..7bc05da2a 100644
--- a/client/src/app/layout.tsx
+++ b/client/src/app/layout.tsx
@@ -26,7 +26,7 @@ export default function RootLayout({ children }: { children: React.ReactNode })
<html lang="en" suppressHydrationWarning>
<ReactScan />
<body className={cn("bg-background text-foreground h-full", inter.className)} suppressHydrationWarning>
- <ThemeProvider attribute="class" enableSystem={true}>
+ <ThemeProvider attribute="class" enableSystem={true} disableTransitionOnChange>
<TooltipProvider>
<QueryProvider>
<OrganizationInitializer />