Skip to content

[Hot Reload] Add line in <template> cause state lost #1682

Open
@tianjianchn

Description

@tianjianchn

Version

15.9.2

Reproduction link

https://github.com/tianjianchn/vue-hello-world/tree/vue-loader-hot-reload-bug

Steps to reproduce

  1. add data count
  2. add button in template, which will increment count by 1 when clicking
  3. then add an new element in template in new line, save the file

What is expected?

the count value should be kept, other than restored to the initial value.

What is actually happening?

the count value was restored to the initial value.


image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions