Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial data lost in component when updating a mixin #67

Open
Awea opened this issue Apr 11, 2018 · 0 comments
Open

Initial data lost in component when updating a mixin #67

Awea opened this issue Apr 11, 2018 · 0 comments

Comments

@Awea
Copy link

Awea commented Apr 11, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant