-
Notifications
You must be signed in to change notification settings - Fork 137
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
The dark mode setting does not persist after a page refresh. #120
Comments
may i fix this issue? |
i've already sent a PR for this issue |
Hi @version0chiro ,can you assign me the issue.I fixed it using the useEffect hook and storing the current theme in the local storage |
Hi @version0chiro , if this issue is still open can you please assign it to me |
Hello @version0chiro , the PR raised by @Suswetha6 has already fixed the dark-mode issue, yet the issue is still open & unassigned. |
#132 |
Fixed issue no #120 : added persistent theme on refresh
The dark mode setting does not persist after a page refresh. When the page is refreshed, the dark mode reverts to the default (light mode) instead of retaining the user's preference.
Steps to reproduce the behavior :
1.Enable dark mode in the application using the moon icon button at top right
2.Refresh the page.
3.Observe that the dark mode setting is lost and the application returns to light mode.
Expected Behaviour :
The dark mode setting should persist even after a page refresh, so that the user’s preference is maintained.
Screenshots:
Before refresh :
After refresh:
The text was updated successfully, but these errors were encountered: