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't the classNames utility anymore. You have to use cx that is returned by useStyles(): const {classes, cx} = useStyles().
The good news is that TSS is able to give higher priority to the last classes in the list which is an increadibly powerfull feature.
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
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: