Closed GabrielExists closed 8 months ago
(This also happens for me at sycamore-rs.netlify.app/examples/hydrate )
Yes the reformatting did indeed change the HTML and broke hydration. To temporarily fix this, you can open the app in your browser and look at the log message right above the error. The correct SSR-ed HTML should be there and it is simply a matter of copy-pasting that into index.html for it to work.
If you want, you can also open a PR for this and I'll just have to be more careful when I run prettier next time.
Describe the bug The Hydrate example compiles and runs, but the buttons don't work and there is a javascript error in the Chrome F12 menu:
To Reproduce Steps to reproduce the behavior:
Expected behavior I expected there not to be any error in the javascript console, and for the buttons to work.
Environment
Additional context I manually bisected, and the error first appears in 1acd2c3c1770c4403ce7d9dce6622a283f08c015, "Run everything through prettier (#635) Luke* 08/10/2023 09:43" Reverting examples/hydrate/index.html makes the error stop appearing, so I'm guessing something about the reformatting changed something about the "hydration start marker", but I don't have enough context to know what to look for.