-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[REF-3165] Warning: Text content did not match. Server: "" Client: "system" #3538
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When
chakra-ui-color-mode
does not match the system mode, nextjs throws a hydration error.To Reproduce
Expected behavior
resolved_color_mode
should not cause a hydration error. We should set it to a definitely value for server side rendering, and then update it on the client at runtime.Setting default
resolved_color_mode
to theresolvedTheme
outside of an effect means that the server and the client will render different a different initial DOM.Specifics (please complete the following information):
REF-3165
The text was updated successfully, but these errors were encountered: