Open jakeleventhal opened 3 months ago
We are also experiencing this issue, after updating emotion
dependencies, we are getting hydration errors in styled MUI components. I raised an issue. @emotion/styled
and other packages are a peer dependency of multiple MUI
packages.
Amen plz we have this issue too
same here!
Same problem here with Nextjs Pages router. For anyone looking for a fix, I recommend trying to override "@emotion/serialize"
as mentioned in the linked issue by @ddembo
Steps to reproduce
I am using a
<LoadingButton />
in my app. I can't reliably reproduce this. In most cases, it works fine. Sometimes it doesn't.Current behavior
Button uses default MUI styling and ignores all the theme overrides I have upon a hard refresh. When navigating to the page via next.js routing, it works fine. Then if I refresh, the styles use the default MUI stylings. In the console I get the following warning:
In the screenshot you can see the difference. The fonts/styles are using the default MUI styles:
Expected behavior
Button loads with correct styles always
Context
No response
Your environment
Tried in safari and chrome
Search keywords: loadingbutton hydration