-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Hydration mismatch since 1.3.0 #4900
Comments
I have a similar issue and i hunted it down to this line where the comparison is checking for string, but if it is HTMLString (what it is in my case) it is just jumping over it and the array buffer stays empty for the hydration script. |
i would recommend a change to something like this.
this mirrors (invert) the behaviour of the maybe this could be included in PR #4918 |
Thanks @AirBorne04 for doing the research! |
Hey, thank you for handling this issue but unfortunately the initial problem does not seem to be fixed. I think I identified an even smaller reproduction, I'll try to update this or I'll just create an other issue, as you wish. |
Also, note on my reproduction repository, that with the same code:
Do you know what could cause such a thing? |
Oh wow, no but that's very interesting. 1.3.0 introduced the ability to stream responses in the template. I'm guessing this is the culprit (and also the perf regressions reported) |
@ElMatella got some reports of performance going down. I think it's likely that that issue and yours are related. I have a preview tag that might fix it, can you try this out? #4956 (comment) |
There's definitely still a speed different even after 1.4.3. So I'm prioritizing this. |
I think I've tracked down the problem here, working on a fix. |
Have a preview release for this:
Will test in your repo. |
No more mismatch from my testing. |
Houray! Looks perfect, it's fixed on my end. thank you very much! I'll look at the pull request, would love to contribute some day. Have a very nice day or night. |
I've that problem but I use Vue 3
|
@carlos00027 replace
|
What version of
astro
are you using?1.3.1
Are you using an SSR adapter? If so, which one?
Node
What package manager are you using?
npm
What operating system are you using?
Mac
Describe the Bug
Hi, since 1.3.0, I'm having a bug with SSR and VueJS. It only happens on rather long pages.
Take this Astro component:
And this Vue component:
From 1.3.0, the page takes a really longer time to generate, and results in a hydration mismatch on the client:
When switching back to
1.2.8
withnpm install [email protected] --save-exact
, the mismatch error disappear and the page takes significantly less time to generate:Because I use rather long HTML pages, I can't upgrade to
1.3.*
and I'm stuck to1.2.8
.To reproduce, please clone the repo, and run:
Then to see how it worked before, type:
Thank you very much for your time, and thank you for your amazing work :)
Reproduction: https://github.com/ElMatella/astro-ssr-bug
Link to Minimal Reproducible Example
https://github.com/ElMatella/astro-ssr-bug
Participation
The text was updated successfully, but these errors were encountered: