Skip to content
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

[Bug]: Not working, In case of toggle and switching modes #302

Open
mayanksinghal-dev opened this issue Jun 28, 2024 · 0 comments
Open

[Bug]: Not working, In case of toggle and switching modes #302

mayanksinghal-dev opened this issue Jun 28, 2024 · 0 comments
Labels
bug Something isn't working triage

Comments

@mayanksinghal-dev
Copy link

What happened?

Hi, I am facing an issue in next-themes.
I am trying to create a toggle for mode change. But my local storage theme is not updating on hitting the refresh button.

Due to which, if i set my theme as light and then hit the refresh button, my toggle switches to dark but my theme is still light on-screen and in local storage.

I have set my toggle on condition that if theme is light then get on sun icon else on moon icon. So if i am on light theme, on hit of refresh icon, probably my theme is set as undefined or whatever so my toggle switches to moon, but my local storage still shows theme as light.

Version

0.3.0

What browsers are you seeing the problem on?

Chrome

@mayanksinghal-dev mayanksinghal-dev added bug Something isn't working triage labels Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage
Projects
None yet
Development

No branches or pull requests

1 participant