Closed shiro closed 9 months ago
Thanks for reporting. We have guards to fallback to client render in these cases, but we must be missing a check somewhere.
Well the good news is this seems to be caused by HMR. In Prod this doesn't happen. Build the project and run start and it seems to work fine. The problem seems to be some HMR insert it is trying to do. That being said I'm hoping there is a way to fix this in dev. But I think that will have to be on the Solid Refresh/Vite side and I imagine it may be pretty tricky.
I categorized this wrong before. This was a minor logic error I introduced in Solid 1.8. It is fixed in Solid 1.8.15 in the linked issue.
Duplicates
Latest version
Current behavior 😯
Happens in both dev and prod (sometimes only in one of them), leading to behaviour like the
children
ofSuspense
being empty, double rendering, node is null error, etc.See the repro for an example.
Expected behavior 🤔
User input shouldn't break hydration.
Steps to reproduce 🕹
Steps:
Suspense
that takes 5sec to resolveSee the repro for an example.
Context 🔦
No response
Your environment 🌎
Edit: Pressing any key will also result in the error.