Closed amiroff closed 3 years ago
Sorry for not checking this upfront, it has already been discussed to no avail. Closing this ticket now.
Hi @amiroff Would you like this library to have an option of using local storage for storing dark mode preferences so that it can be used with automatic static optimisation?
Hello @xeoneux , that would be perfect tbh, but a mention in docs/readme warning that it could break static builds would prevent surprises 🥇
Thanks for the great library.
Using next-dark-mode causes Next.js app to render pages server-side, thus significantly slowing down first content render by implementing
getInitialProps
. Is there a way to avoid it?Here's the build output:
Usage example: NextBook