v-for without :key #10461
Unanswered
Ben-Zahler
asked this question in
Help/Questions
v-for without :key
#10461
Replies: 1 comment
-
https://vuejs.org/guide/essentials/list.html#maintaining-state-with-key |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hi all,
we're building a frontend in vue/nuxt to a backend.
We sometimes iterate over items that are coming from backend and I'm very surprised to see that we need to provide :key items for v-for.
The objects that we have do not have ids, they can be 100% identical regarding the content and really: I don't want to worry about keys. i don't want to generate them, I don't want to maintain them, I expect my FE.-Framework to take care of things like this.
We tried to generate uniqueIds on the fly, but also this did break our page.
The only thing that reliably work for us is to omit the :key attribute on the v-for node.
Can someone explain:
thanks,
Ben
Beta Was this translation helpful? Give feedback.
All reactions