Skip to content

Removing first and last element in a list rendered component forces a complete re-rendering of all items #6857

@rasmushaglund

Description

@rasmushaglund

Version

2.5.2

Reproduction link

https://codepen.io/spenspazmer/pen/aLXGGY?editors=1011

Steps to reproduce

1.Create a v-for list with items
2.Inspect and observe the item elements
3.Trigger an action that shifts and pops the list
4.Observe

What is expected?

The items should be removed without re-rendering the item list.

What is actually happening?

The whole list is re-rendered.


Adding new elements works just as expected, just as triggering several pop or shift operations, doing a single list splice from the end or start. Performing a splice from the beginning and the end respectively triggers the same re-rendering problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions