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
{{ message }}
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.
codebender828
changed the title
bug(Nuxt:Colormode): Static deployments on Nuxt.js does not initialize with cookie color mode.
Bug (Nuxt:Colormode): Static deployments on Nuxt.js does not initialize with cookie color mode.
Mar 13, 2023
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Since statically pre-rendered routes pre-render the page, the color mode is already inserted in the Chakra Application.
With Nuxt Server deployment, the Chakra Module is able to extract the current color mode based on the user's cookie content.
However, with static rendering, this process gets interfered with. To solve this we need to:
localStorage
for pages prerendered with Nitro. The client plugin already uses this approach.colorModeManager
in the Nuxt plugin and apply it hereThe text was updated successfully, but these errors were encountered: