When a user switches between light/dark modes, the selected theme is not persisted after a page refresh. The application resets to the default theme instead of retaining the user’s preference.
Steps to Reproduce
Open the application
Toggle the theme (e.g., light → dark or vice versa)
Refresh the page
Expected Behavior
The selected theme should persist across page reloads and sessions.
Actual Behavior
The theme resets to the default on refresh.
Possible Cause
Theme preference is not being stored (e.g., in localStorage, cookies, or backend) or not being read/applied correctly on app initialization.
When a user switches between light/dark modes, the selected theme is not persisted after a page refresh. The application resets to the default theme instead of retaining the user’s preference.
Steps to Reproduce
Open the application
Toggle the theme (e.g., light → dark or vice versa)
Refresh the page
Expected Behavior
The selected theme should persist across page reloads and sessions.
Actual Behavior
The theme resets to the default on refresh.
Possible Cause
Theme preference is not being stored (e.g., in localStorage, cookies, or backend) or not being read/applied correctly on app initialization.