Skip to content

keep-alive doesn't call $destroy if view is actived #7566

Closed
@StarHosea

Description

@StarHosea

Version

2.5.13

Reproduction link

https://jsfiddle.net/50wL7mdz/94716/

Steps to reproduce

  1. navigate to page-a to make keep-alive to cache page-a component
  2. navigate to page-b to make keep-alive to cache page-b component
  3. now, if remove cache of page-a, page-a was destroyed correctly,
    if navigate back to page-a and remove cache of page-b ,page-b was not destroyed

What is expected?

page-b was destroyed

What is actually happening?

page-b was was not destroyed


https://github.com/vuejs/vue/blob/dev/src/core/components/keep-alive.js#L44

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions