-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
Hydration Error in React 19 with Pigment CSS and MuiSvgIcon fontSize prop #44675
Comments
@wh5938316 Would you mind providing a repro in codesandbox or stackblitz? |
@mj12albert |
@brijeshb42 may I ask you to identify if this is on Pigment CSS or Material UI side? |
@brijeshb42 @DiegoAndai Hi, Is there any progress on this issue? |
Hey. It went out of my radar. I'll check this today and get back. |
I have not been able to debug the cause of this issue. The main location where it's supposed to tell the difference in the className attribute, it cuts off to ellipsis. I checked both the server and the client rendered classNames and found both to be same though which is also validated by the prod build having the same classnames
Update: I found that the code generated for server side is different from the one generated for client side. Debugging more. |
This was mutating the original theme object resulting in different codes for server and client components. Fixes: mui/material-ui#44675
Steps to reproduce
Steps:
Current behavior
No response
Expected behavior
Context
No response
Your environment
npx @mui/envinfo
Search keywords: pigment-css, react19, next15, hydration error
The text was updated successfully, but these errors were encountered: