daily-code icon indicating copy to clipboard operation
daily-code copied to clipboard

fixed theme issue on reload

Open RitikBora opened this issue 2 years ago • 1 comments

This pr is raised in reference to the issue #63 .

The discrepancy between the selected theme and the track page theme was due to hydration issue. There is a possiblity of the theme holding diffrent values on server and client side

I have used a simple mount variable to check for page mounting and then used the resolvedTheme for the condition. This takes care of the theme holding its value even after page reloads

RitikBora avatar Feb 14 '24 08:02 RitikBora

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
daily-code-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 14, 2024 8:35am

vercel[bot] avatar Feb 14 '24 08:02 vercel[bot]