Skip to content

Hot reload doesn't drop the old component if it's wrapped in <keep-alive> #700

@pevzi

Description

@pevzi

(not sure if I've chosen the appropriate bug tracker for this)

Steps to reproduce:

  1. Create an empty Vue project with the webpack template.
  2. Open App.vue and wrap the <hello> component in a <keep-alive>.
  3. Run the dev server.
  4. Modify the script section of Hello component (modifying the template doesn't trigger the issue).
  5. See Components tab in vue-devtools.

Expected behavior: the wrapped component is replaced with the new version.
Observed behavior: the old version is kept alive, and each change results in an additional inactive component.

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