Skip to content

Should keyed v-for array refs be ordered?ย #4010

@soc221b

Description

@soc221b

Version

3.1.2

Reproduction link

vue 3

Steps to reproduce

  1. open sandbox
  2. open console
  3. click reverse
  4. see first and second refs log

What is expected?

second log should be:

[
  <div>bar</div>,
  <div>foo</div>,
]

What is actually happening?

second log still be:

[
  <div>foo</div>,
  <div>bar</div>,
]

Ref: https://v3.vuejs.org/guide/migration/array-refs.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    need guidanceThe approach/solution in the PR is unclear and requires guidance from maintainer to proceed further.scope: v2 compat

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions