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
ThemeSwitch shows the light mode setting then moves over to dark mode if loading in SSR. This is because the positioning is just using the checked state instead of being keyed on the dark class.
This is a GIF of me refreshing the page three times.
This can probably just be overridden by passing in some custom classes to disable the normal positioning classes and use dark: variant based code instead. I'll make a PR for this soon-ish.
The text was updated successfully, but these errors were encountered:
dimfeld
changed the title
ThemeSwitch FOUC with SSR
next branch: ThemeSwitch FOUC with SSR
Feb 3, 2024
ThemeSwitch shows the light mode setting then moves over to dark mode if loading in SSR. This is because the positioning is just using the checked state instead of being keyed on the
dark
class.This is a GIF of me refreshing the page three times.
This can probably just be overridden by passing in some custom classes to disable the normal positioning classes and use
dark:
variant based code instead. I'll make a PR for this soon-ish.The text was updated successfully, but these errors were encountered: