Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

🐛 Fix hydration issue on preferences page (#RAL-1066) (#2269)

Luke Vella902af0b4aa64
diff --git a/apps/web/src/app/[locale]/(app)/(space)/settings/preferences/preferences-page.tsx b/apps/web/src/app/[locale]/(app)/(space)/settings/preferences/preferences-page.tsx
index 67e0329aa..92319361a 100644
--- a/apps/web/src/app/[locale]/(app)/(space)/settings/preferences/preferences-page.tsx
+++ b/apps/web/src/app/[locale]/(app)/(space)/settings/preferences/preferences-page.tsx
@@ -1,5 +1,6 @@
"use client";
+import dynamic from "next/dynamic";
import {
PageSection,
PageSectionContent,
@@ -13,7 +14,12 @@ import { DateTimePreferences } from "./components/date-time-preferences";
import { LanguagePreference } from "./components/language-preference";
import { ThemePreference } from "./components/theme-preference";
-export function PreferencesPage() {
+export const PreferencesPage = dynamic(
+ () => Promise.resolve({ default: PreferencesPageInner }),
+ { ssr: false },
+);
+
+function PreferencesPageInner() {
return (
<PageSectionGroup>
<PageSection variant="card">