-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
Mismatch of styles when using dynamic styles #135
Comments
Hey @Kyderman, You can't the Also have setup MUI for SSR or used the tooling provided by TSS? https://docs.tss-react.dev/ssr/next.js#single-emotion-cache |
Hey, ive setup for use with SSR / MUI. Ive just changed to cx and the problem persists where the dynamic class is applied on server vs not on client, probably because theres a graphql call made which changes that logic, so I think ill just have to render client side in these cases, thanks |
Thanks for the update. |
Hey,
I am currently converting on app over to use Next.js / TSS, we have a bunch of styling that is done dynamically using
classNames
Now I have something like so.
On the server, one style is used, on the client another is used therefore I get the hydration error.
My question here is do I just need to have the component not render in SSR or can I have this mismatch handled better?
Thanks
The text was updated successfully, but these errors were encountered: