Skip to content

State will be saved when using two same components with v-if #7863

Closed
@SidKwok

Description

@SidKwok

Version

2.5.16

Reproduction link

https://jsfiddle.net/50wL7mdz/208710/

Steps to reproduce

  1. A component with state
  2. Render two same components with v-if

What is expected?

The two components should be different.

What is actually happening?

State will change.


v-show is ok

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