material-ui icon indicating copy to clipboard operation
material-ui copied to clipboard

@remix/run example hydration error

Open trickreich opened this issue 1 year ago • 5 comments

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:

  1. Open Console

Current behavior 😯

CleanShot 2022-12-08 at 09 23 05@2x

Expected behavior 🤔

No hydration error

Context 🔦

No response

Your environment 🌎

No response

trickreich avatar Dec 08 '22 08:12 trickreich

Hi, did you follow the example project we provide?

mnajdova avatar Dec 14 '22 09:12 mnajdova

Yes, open your example in StackBlitz.. you will see the same errors..

trickreich avatar Dec 14 '22 09:12 trickreich

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.

mnajdova avatar Dec 14 '22 12:12 mnajdova

Sorry, I don't get it.. is there a working example somewhere? I would need it for a production app...

trickreich avatar Dec 14 '22 13:12 trickreich

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.

techieyann avatar Dec 15 '22 18:12 techieyann

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

progital avatar Feb 14 '23 00:02 progital

this worked for me: https://github.com/kiliman/remix-hydration-fix

MartinRob13 avatar Apr 12 '24 16:04 MartinRob13