M. Dost
M. Dost
Hey, I've seen next-themes before and might give that a go, since I might be a nitpicker here but I do not like having the flash.
@djD-REK Thanks again for your recommendation, it works great with no flash! Do you have any idea how to apply a toggle to an input like: ``` ``` The example...
@DoctorDerek Yes I got it working now in the end by doing: ``` const DarkModeToggle = () => { const [mounted, setMounted] = useState(false); const { theme, setTheme } =...
@okalil I see, so it would cause problems when doing SSR. Keep in mind I switched from this library to next-themes, which might still cause the same problem if doing...
Same here when only using a checkbox it does not change back to light mode and have to click twice. With the buttons it works as expected. ``` ``` hmm,...
@Vinyl-Davyl downgrade from `[email protected]` to `[email protected]` Apparently there is a breaking change with [email protected] on windows. Source: https://stackoverflow.com/questions/68991702/fresh-nextjs-app-throwing-errors-before-any-changes/68992114#68992114 You could also try and upgrade to next 12 of course :)