-
-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flashing in Firefox on first call and on every refresh #90
Comments
I am having the same issue. Downgrading to 0.0.15 also solves the flashing. Versions |
Seeing in Chrome as well. |
I'm seeing the same issue in both Firebox and Chrome as well.
|
Using next-themes 0.2.0-beta.0 worked for me, in Firefox, Chrome and Safari. |
I tested it right now and unfortunately it doesn't fix the issue in Firefox (updated to 98.0 in the meantime). |
I had the same issue, I downgraded to One side note: I see flashing screen in Firefox only when I run in dev mode |
Flashing in development is expected: |
Yes I forgot to mention this FAQ link, it was a reference for others who are not aware of the behaviour. |
Issue
The page flashes on first call and on every page refresh in Firefox with next-themes 0.1.1, if you have dark mode activated in your OS but no current local storage item regarding your theme choice.
This issue was introduced with version 0.0.16, downgrading to 0.0.15 fixes it.
Setup
SSG Next app with Tailwind. But the same applies if you try it with plain CSS modules.
Demo
0.0.15
0.1.1
Versions
Next 12.1.0
Tailwind 3.0.22
next-themes 0.1.1
Firefox 97.0.1
macOS 12.2.1 (21D62)
The text was updated successfully, but these errors were encountered: