Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Labels
bug keep-alive Problem appearing when using keep-alive

Comments

@yidazh
Copy link

yidazh commented Dec 28, 2018

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)

@posva posva added bug keep-alive Problem appearing when using keep-alive labels Dec 28, 2018
zrh122 added a commit to zrh122/vue-router that referenced this issue Mar 30, 2019
zrh122 added a commit to zrh122/vue-router that referenced this issue Mar 30, 2019
zrh122 added a commit to zrh122/vue-router that referenced this issue Apr 3, 2019
@posva posva closed this as completed in c3abdf6 Apr 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment