Skip to content

beforeRouteEnter hook's cb is not called (same component across diffrent routes and keep-alive applied ) #2561

Closed
@yidazh

Description

Version

3.0.2

Reproduction link

https://jsfiddle.net/9vctongd/1/

Steps to reproduce

  1. open the JSFiddle provided, open the console
  2. click link GO TO FOO1
  3. click link GO TO BAR
  4. click link GO TO FOO2

What is expected?

console prints:

foo enter

foo enter cb

foo enter

foo enter cb

What is actually happening?

console prints:

foo enter

foo enter cb

foo enter


also results in an infinite function call (function poll in base.js)

Metadata

Assignees

No one assigned

    Labels

    bugkeep-aliveProblem appearing when using keep-alive

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions