-
Notifications
You must be signed in to change notification settings - Fork 4k
Labels
bugSomething isn't workingSomething isn't working
Description
Platform
Window 11
Browser
Brave
Current Behavior
When switching between Dark and Light themes, the application throws a hydration error.
The server renders "Dark" by default, but the client re-renders as "Light", causing a mismatch.
This results in a console warning:
"Hydration failed because the server rendered text didn't match the client."
Expected Behavior
The theme toggle should render consistently across server and client.
Switching themes should not cause hydration errors, and the text should match between server and client ("Dark" or "Light").
Recurrence Probability
Always
Steps To Reproduce
- Run the application in development mode.
- Open the app in Brave browser (Windows 11).
- Toggle between Dark and Light themes.
- Open the console and observe the hydration error.
Anything else?
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working