material-ui
material-ui copied to clipboard
@remix/run example hydration error
Duplicates
- [X] I have searched the existing issues
Latest version
- [X] I have tested the latest version
Steps to reproduce 🕹
Link to live example: https://zzmiwwwmjgithub-uqcc--3000.local-credentialless.webcontainer.io/
Steps:
- Open Console
Current behavior 😯

Expected behavior 🤔
No hydration error
Context 🔦
No response
Your environment 🌎
No response
Hi, did you follow the example project we provide?
Yes, open your example in StackBlitz.. you will see the same errors..
I noticed now that the example is pretty much out of date, compared to the latest template that is being generated. We will need to update it.
Sorry, I don't get it.. is there a working example somewhere? I would need it for a production app...
Emotion does not support React 18's renderToPipeableStream
yet. You either live with the hydration error or a noticeable flicker on initial load when the styles get applied.
I can update the example project with this solution that fixes hydration errors. Have it implemented for a project of mine, works fine. Happy to submit a PR @mnajdova
this worked for me: https://github.com/kiliman/remix-hydration-fix