-
Notifications
You must be signed in to change notification settings - Fork 316
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
fix: entry.client not using the new hydrateRoot #41
Conversation
Can you test this in latest Safari? I get a white page and bunch of errors in console when changing my entry.client.tsx to use hydrateRoot without any other changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, nice! I tried it and thought TypeScript hadn't been updated yet because it wasn't working. Turns out I forgot to pull it from react-dom/client
😅
Thanks!
Would you be interested in doing this for the Blues/Grunge stacks as well? |
I just tested and it's working fine for me. |
This reverts commit d129188.
Unfortunately I had to revert this PR because it failed CI: https://github.com/remix-run/indie-stack/runs/5773745947?check_suite_focus=true My bad for merging it before checking, but it looks like the Cypress test failed. I'm afraid I don't have the bandwidth to look into why right now. |
Hi, same issue on my stack : Hydration failed because the initial UI does not match what was rendered on the server. |
More details :
line 3275 is :
Appears only on Cypress, so, maybe we need to wait ? |
Works indeed only locally |
It only works with NODE_ENV=development after trying to run cypress test. |
In case of : remix-run/remix#2570 I closed it because It's not reproducible every time in my machine. |
i just saw that the indie-stack has react 18.0.0 but the entry.client was using old hydrate. Not sure if this was on purpose but on discord I was told to send a PR nonetheless.
I looked at server.entry and thought of adding
renderToReadableStream
but I think this might have more implications than I understand about remix's choices.