The dark mode setting does not persist after a page 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:
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 edit - I have added the PR #134
Hello @version0chiro , the PR raised by @Suswetha6 has already fixed the dark-mode issue, yet the issue is still open & unassigned. Can you assign me this issue as a contributor in GSOC-Extd 2024 to contribute while dedicatedly adhering to your code of conduct and making changes w.r.t your web app requirements and integrity.
https://github.com/version0chiro/Find-Me-Issues/pull/132 Please check this PR
can i work on this ?