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
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: