Skip to content

HMR issue with named slots #9474

Closed
Closed
@AlexandreBonaventure

Description

@AlexandreBonaventure

Version

2.6.5

Reproduction link

https://github.com/AlexandreBonaventure/vue-hmr-bug

Steps to reproduce

  1. run the dev server
  2. change the content inside the named slot test here : https://github.com/AlexandreBonaventure/vue-hmr-bug/blob/master/src/App.vue#L5
  3. see in the browser nothing has changed
  4. uncomment that: https://github.com/AlexandreBonaventure/vue-hmr-bug/blob/master/src/App.vue#L4
  5. see in the browser HMR is working again as expected

What is expected?

That HMR works even if the default slot is not overriden.

What is actually happening?

If the default slot is not overridden (content set in the parent scope), HMR does not trigger a re-render for named slots content.


ps: sorry here for the minimal repro with a build step, but dunno how else we can do it!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions