use-dark-mode icon indicating copy to clipboard operation
use-dark-mode copied to clipboard

Query initial state synchronously

Open aghoneim92 opened this issue 3 years ago • 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.

aghoneim92 avatar Apr 02 '21 20:04 aghoneim92