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

Dark Mode Setting Resets to Light Mode After Page Refresh #565

Open
sh4f3e opened this issue Jul 25, 2024 · 2 comments
Open

Dark Mode Setting Resets to Light Mode After Page Refresh #565

sh4f3e opened this issue Jul 25, 2024 · 2 comments

Comments

@sh4f3e
Copy link

sh4f3e commented Jul 25, 2024

Issue Description

The dark mode setting in ShopNex resets to light mode after the page is reloaded or refreshed. This issue disrupts the user experience, as users need to re-enable dark mode each time they revisit the site or refresh the page.

Steps to Reproduce

  1. Navigate to the ShopNex website.
  2. Enable dark mode.
  3. Refresh the page or reload the website.
  4. Observe that the dark mode setting reverts to light mode.

Expected Behavior

The dark mode setting should persist across page reloads and refreshes, maintaining the user's preference.

Actual Behavior

The dark mode setting resets to light mode after the page is refreshed.

Potential Cause:

This issue could be due to the dark mode preference not being stored correctly in local storage or not being retrieved properly when the page loads.

Environment:

Browser: (e.g., Chrome, Firefox)
Operating System: (e.g., Windows 10, macOS 11)
React Version: (e.g., 17.0.2)

@sh4f3e
Copy link
Author

sh4f3e commented Jul 25, 2024

/assign

@sangamesh-Lingshetty
Copy link

Assign this issue to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants