donavon/use-dark-mode

Query initial state synchronously

aghoneim92 opened this issue · 0 comments

Since we can both read from localStorage and find the media query value synchronously at startup, the flash situation could be avoided if there's no server-side rendering or static site generation. I would love to implement this, and would like to know the maintainers' thoughts about it.