vue-hot-reload-api icon indicating copy to clipboard operation
vue-hot-reload-api copied to clipboard

Initial data lost in component when updating a mixin

Open Awea opened this issue 7 years ago • 0 comments
trafficstars

Version

  • vue-hot-reload-api 2.2.0

Reproduction link

https://github.com/Awea/issue-vue-hot-reload-api-mixins

Steps to reproduce

Try comment/uncomment:

// src/mixins/my-mixin.vue#L20-22
foo(){
  console.log('bar')
}

What is expected ?

I expect that HelloWorld component will have his data.internalData set to 'Some stuff'.

What is actually happening?

When a Mixin is updated the Component that use it lost his initial data.

Awea avatar Apr 11 '18 08:04 Awea