shyamtawli / devFind

devFind is an open source project that aims to create a platform for developers to showcase their skills and connect with potential collaborators, all in a user-friendly and searchable format.
https://dev-find.vercel.app/
MIT License
549 stars 589 forks source link

[Bug]: Current theme is not persistent across site reloads #1131

Open dylan-dot-c opened 1 month ago

dylan-dot-c commented 1 month ago

What happened?

Whenever the user chooses dark mode and the browser is refreshed, the mode returns to its original state, which is light mode.

I expect that when I change my theme to dark mode, it should remain in dark mode even when I refresh my browser.

Add screenshots

recording.webm

As you can see, when the browser reloads the current state of the theme has been set to the default light mode.

I also realize that there is already a custom hook for the localStorage but it hasn't been used when implementing this feature.

I plan to simply update it and use it to solve this issue

What browsers are you seeing the problem on?

Microsoft Edge

Code of Conduct

github-actions[bot] commented 1 month ago

Welcome, @dylan-dot-c! Your issue is like a spark that ignites innovation. We're thrilled to dive into it and work together to find a solution.

Soon the maintainers/owner will review it and provide you with feedback/suggestions.