← Back to Changelog
ImprovementApril 16, 2026
prevent hydration mismatch on branding settings page
- Added a
mountedstate guard foruseTheme()inBrandingSettings.tsxto prevent SSR/client hydration mismatch resolvedThemefromnext-themesisundefinedduring SSR but resolves on the client, causing React hydration errors on the branding settings preview section (dark/light conditional rendering)- The fix ensures SSR and initial hydration both render with
isDarkMode = false, then the theme kicks in after mount
Fixes KAZOKUS-FRONTEND-B (9 events, recurring since Feb 21)
