Skip to content

HMR doesn't update component which uses events #1942

@Kadeluxe

Description

@Kadeluxe

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions