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 at {{ "" }} inside v-for #12523
Comments
{{ index > 0 ", " : "" }} This sentence is missing a question mark, it should be {{ index > 0 ? ", " : "" }} |
Obviously just a typo in my question :D |
In your codesandbox link, you use the id as the key... and it's the same for every entry. The key as to be unique. Try using |
This comment was marked as spam.
This comment was marked as spam.
dfkjdkfjkdfjkdf |
@Fabioni You may toogle the bool at line 15 to switch between workaround(restart the server after toggle) I think it is fixed in Vue 3 |
If you restart the hyrdation error is not present,but if do not restart the error is present. |
Version
2.6.14
Reproduction link
codesandbox.io
Steps to reproduce
Important for me was it in this usecase
I don't know that much about vue without nuxt, so I can't say how to reproduce sss, just came here by this comment nuxt/nuxt.js#10390 (comment)
I used
nuxt dev
withtarget: 'static'
in nuxt.config.What is expected?
normal hydration
What is actually happening?
I get a hydration mismatch because nuxt on ssr somehow thinks there is a node with empty content and undefined type and on clientside there correctly no node.
Workaround
use instead:
resp.
First posted issue here: nuxt/nuxt.js#10390
The text was updated successfully, but these errors were encountered: