Hydration error in next.js with MUI after upgrading Emotion #43045
Labels
external dependency
Blocked by external dependency, we can’t do anything about it
nextjs
package: system
Specific to @mui/system
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
The text was updated successfully, but these errors were encountered: