pumbas600/E-Portfolio

Saved theme isn't loaded correctly

Closed this issue · 0 comments

When you set the website's theme to light mode and then refresh the page, it initially loads the website with the dark theme, and detects the persisted light mode but only changes the internal state, not the styles.

I believe this occurs because the dark class doesn't get removed when it checks local storage initially.