mazipan / pramuka.online

🌴 Kumpulan informasi digital mengenai berbagai materi pramuka, materi kenegaraan dan materi kecakapan umum
https://pramuka-id.vercel.app/
MIT License
98 stars 31 forks source link

Bug - Dark Mode Have a Blink when Hard Reload #66

Closed mazipan closed 2 years ago

mazipan commented 3 years ago

Describe the bug

When you're on the dark mode and refresh the page, you will see the light mode first then it swap to dark mode.

Expected behavior

Smooth interaction when reload page

oli799 commented 3 years ago

Hello @mazipan , I would work on it if you assign me :)

mazipan commented 3 years ago

https://hangindev.com/blog/avoid-flash-of-default-theme-an-implementation-of-dark-mode-in-react-app

kelilipan commented 3 years ago

https://fatihkalifa.com/dark-mode-web#flashof%20default%20theme%20(fodt)