Closed Pszz closed 2 months ago
Can help reproduce this so i can help or at least figure out the issue. You can share the repository if possible.
I know the problem. I use AtomWithStorage localStorage. When Atom defaults to Light, it does not get the correct content for the first time and returns the default value. As a result, even though I changed the theme to Dark and successfully stored it in the localStorage. After I refreshed the page, it still returned the default value of Light.
What happened?
When I setTheme toggle, LocalStorage successfully becomes
dark
. But when I refresh the page, it is reset tolight
Version
"next-themes": "^0.3.0",
What browsers are you seeing the problem on?
Chrome