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

HMR doesn't update component which uses events #1942

Closed
Kadeluxe opened this issue Aug 23, 2020 · 2 comments
Closed

HMR doesn't update component which uses events #1942

Kadeluxe opened this issue Aug 23, 2020 · 2 comments

Comments

@Kadeluxe
Copy link

Kadeluxe commented Aug 23, 2020

Version

3.0.0-rc.7

Reproduction link

https://github.com/Kadeluxe/051c3513-84bf-42f9-b3f6-a0d35fc43f9c

Steps to reproduce

  1. Create any component with prop;
  2. Put prop in a template to display it;
  3. Use this component anywhere, specify prop value, add any event to it;
  4. Run development server, change prop value

What is expected?

HMR works and component gets updated

What is actually happening?

HMR doesn't update component


This is the diff from vue-cli generated project with working reproduction.
Clone it, run serve and change text prop value of Test inside App.vue. Unless you remove @click event, HMR won't update Test component at all.

@turrsis
Copy link
Contributor

turrsis commented Jul 7, 2021

A similar error with custom directives. Component properties are not updated while a custom directive is set.

@turrsis
Copy link
Contributor

turrsis commented Jul 7, 2021

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

No branches or pull requests

2 participants