If we set your theme as light/dark and reload the page, we won't see anything visually but you can really see this bug if you are doing any animation on your toggle switch based on theme value.
Simply console logging the theme value and triggering route change will show this -
which is causing the following visual glitch.
Solution: Setting the default value of theme to window.__theme ~null~ will fix this issue coz if __theme value is not present, it would default to falsy value now.
If this looks file, I would also request you to do a new v1.1.1 release with this change.
If we set your theme as
light/dark
and reload the page, we won't see anything visually but you can really see this bug if you are doing any animation on your toggle switch based ontheme
value.Simply console logging the theme value and triggering route change will show this - which is causing the following visual glitch.
Solution: Setting the default value of theme to
window.__theme
~null~ will fix this issue coz if __theme value is not present, it would default to falsy value now.If this looks file, I would also request you to do a new
v1.1.1
release with this change.