You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have this pen, where I create a list with a v-for, but when I update the list (remove an element clicking on it), then the next elements render again i.e. if you click the 5, then the 6, 7, and so on, are re-rendered
<ulv-scope><liv-for="item in items" :key="item" class="animation" @click="remove(item)">
{{ item }}
</li></ul>
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have this pen, where I create a list with a v-for, but when I update the list (remove an element clicking on it), then the next elements render again i.e. if you click the 5, then the 6, 7, and so on, are re-rendered
Am I doing something wrong?
I have setted the keys for the elements in the v-for
Beta Was this translation helpful? Give feedback.
All reactions