Bug Description
Hey, found something that's been bugging me for a while now.
I have dark mode enabled and every time I navigate between pages (like going from Leaderboard to Profile or Friends) the page briefly flashes white before settling back to dark mode. It's really noticeable especially at night and honestly quite jarring.
Feels like the theme isn't being applied before the page renders. Maybe the ThemeContext is initializing with a default light value before reading from localStorage?
Steps to reproduce:
- Enable dark mode
- Navigate between any two pages using the sidebar
- Watch for a white flash during the transition
Expected: Theme should stay consistent during navigation with zero flicker
Device: Windows 11, Chrome 124
Bug Description
Hey, found something that's been bugging me for a while now.
I have dark mode enabled and every time I navigate between pages (like going from Leaderboard to Profile or Friends) the page briefly flashes white before settling back to dark mode. It's really noticeable especially at night and honestly quite jarring.
Feels like the theme isn't being applied before the page renders. Maybe the ThemeContext is initializing with a default light value before reading from localStorage?
Steps to reproduce:
Expected: Theme should stay consistent during navigation with zero flicker
Device: Windows 11, Chrome 124