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

nested keep-alive and router-view render last route path component not current route component #3096

Closed
ctwowt opened this issue Jan 13, 2020 · 1 comment

Comments

@ctwowt
Copy link

ctwowt commented Jan 13, 2020

Version

3.1.3

Reproduction link

https://codesandbox.io/s/peaceful-tdd-k2tvn

Steps to reproduce

see gif or
click buttons:
Home -> a.aa.aaa -> Home -> a.aa.bbb

What is expected?

router-view working correctly

What is actually happening?

router-view render last route component not current route path component


inactive = true

But I Change code

if (vnodeData.keepAlive && parent._inactive) {
     inactive = true
}

to

if (vnodeData.keepAlive) {
    inactive = parent._inactive
}

It's working.

keep-alive-router-view-bug3

@posva
Copy link
Member

posva commented Jan 13, 2020

Duplicate of #2923
The opened PR does apply the same fix #2930
I will apply the changes and release them during the week

@posva posva closed this as completed Jan 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants