project-tahiti icon indicating copy to clipboard operation
project-tahiti copied to clipboard

bug(dark-theme): persist user selected mode

Open 120EE0692 opened this issue 11 months ago • 1 comments

Describe the bug

Currently user theme is not persisting. When the user chooses either the dark or light mode and subsequently refreshes the page, the theme reverts back to the default setting.

The synchronization of tabs is not in place, meaning that if the user switches to dark mode in one tab, the other tabs will not reflect the change.

120EE0692 avatar Jul 18 '23 03:07 120EE0692

Currently user theme is not persisting. When the user chooses either the dark or light mode and subsequently refreshes the page, the theme reverts back to the default setting. Consider the use of a service worker or some kind of global state library for this. Or maybe even persist the information in cookies or local storage.

The synchronization of tabs is not in place, meaning that if the user switches to dark mode in one tab, the other tabs will not reflect the change. To my knowledge, since each tab essentially is running a completely separate and detached instance of the application, this cannot be synced in real time, but each instance should be able to fetch the updated variable on refresh.

rutajdash avatar Aug 06 '23 19:08 rutajdash