Skip to content

Conversation

@SutuSebastian
Copy link
Collaborator

Due to Next.js hydration process trying to render on server first, then hydrate on client, data-active attribute depends on computedMode from useThemeMode which has the source of storage localstorage. The problem is that there is no valid computedMode on server.

Changes

  • fix hydration error log caused by DarkThemeToggle

Issue:
#1156

@SutuSebastian SutuSebastian added the 🐛 bug Something isn't working label Dec 6, 2023
@SutuSebastian SutuSebastian self-assigned this Dec 6, 2023
@vercel
Copy link

vercel bot commented Dec 6, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
flowbite-react ✅ Ready (Inspect) Visit Preview Dec 6, 2023 7:17am
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐛 bug Something isn't working

3 participants