-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
SSR/Hydration: Re-Render due to hydration mismatch creates inconsistent DOM - textContent updated correctly, class attr isn't. #5063
Comments
computed
in a SSR
project attributes and nodes is different
Seems we have a bug here when bailing out of hydration because of a mismatch - the text content was updated, but the class attribute wasn't. |
@loyep Even though yes, this is a bug - your usage of a computed here is wrong, too. Looking at the console, you can see that it causes a hydration mismatch. |
computed
in a SSR
project attributes and nodes is different
Yes, I know. Only in this way can we reproduce this problem quickly. |
Not only class, but also style attributes |
- Include the actual element in the warning message - Also warn class/style/attribute mismatches Note: class/style/attribute mismatches are check-only and will not be rectified. close #5063
Currently broken in Vue, due to vuejs/core#5063 Bug: T318137 Change-Id: I8a12a78bf62cccf4e9d900e09d9b49f6f124f893
- Include the actual element in the warning message - Also warn class/style/attribute mismatches Note: class/style/attribute mismatches are check-only and will not be rectified. close #5063
Version
3.2.23
Reproduction link
github.com
Steps to reproduce
What is expected?
Class and text values are the same.
What is actually happening?
The text was updated successfully, but these errors were encountered: