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
MUI handles theme values with SSR quite well when used like <Button color=’primary’>. The current state is when we want to access theme properties we add the hook const theme = useTheme() but this is a Client Only hook, we need something for SSR friendly. MUI offers CSS Variables that are SSR friendly and is most likely the way. Early tests showed promise, but required more tweaking for V1
A problem that we are currently facing is, on initial load for users with dark mode, the page will start in light mode then flicker to dark mode (bad UX)
Objective: Find a way / system to best use theme styles in server components
Activity
[-]SSR: Theme Usage Investigation[/-][+]SSR: Theme Usage Investigation (dark mode initial flicker)[/+]