You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 the resolvedTheme outside of an effect means that the server and the client will render different a different initial DOM.
Specifics (please complete the following information):
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):
From SyncLinear.com | REF-3165
The text was updated successfully, but these errors were encountered: