You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can see that there's a brief moment where the html tag has the theme injected, then it loses the attributes, then they kick back in. In that moment between, it flashes the white background, which is the default in CSS. It should use my system default of dark.
My providers.tsx:
The top of my root layout.tsx:
This site does allow the user to setTheme, but this is only called inside an onClick handler, so I don't think that should be effecting initial visits. I recorded the video when pulling up the site for the first time in an incognito window.
The text was updated successfully, but these errors were encountered:
I'm having some trouble debugging why I'm seeing a flash of no theme on oldfriends.studio. I see this only in production. Here's a video of the issue:
Old.Friends.Engineering.Studio-Friday-November-24-2023-10.28.48AM.mp4
You can see that there's a brief moment where the
html
tag has the theme injected, then it loses the attributes, then they kick back in. In that moment between, it flashes the white background, which is the default in CSS. It should use my system default of dark.My
providers.tsx
:The top of my root
layout.tsx
:This site does allow the user to
setTheme
, but this is only called inside anonClick
handler, so I don't think that should be effecting initial visits. I recorded the video when pulling up the site for the first time in an incognito window.The text was updated successfully, but these errors were encountered: