vue-hot-reload-api
vue-hot-reload-api copied to clipboard
Initial data lost in component when updating a mixin
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.