You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I made a copy of ToggleThemeButton and made only the change of removing the default parameter of lightTheme that is passed to useTheme. Then theme switching works without the extra click. However it will break the app (on load) if no theme is passed to Admin.
The bug is there with memoryStore and with the default localStorageStore.
With using localStorageStore the bug is camouflaged after loading the app more than once.
With using memoryStore the bug is never camouflaged, so it may seem that memoryStore is the cause when you try a few times in stackblitz, but it's not.
The documentation of ToggleThemeButton state that:
So me trying to have darkTheme be the default theme seems out of scope, but it works, but requires an additional click.
What you were expecting:
Hoping to have dark theme the default theme, and switch to light theme using the ToggleThemeButton.
What happened instead:
It works, but requires an additional initial click on the button.
Steps to reproduce:
Admin
)Environment
The text was updated successfully, but these errors were encountered: