We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
3.2.26
github.com
provide two ways.
first: with vue-router@next click 'To Test2' click 'To Test1' click 'To Tesr2'
second: without vue-router click 'show Test4' click 'show Test3' click 'show Test4'
first: with vue-router@next click 'To Test2' // console Test1 isDeactivated true click 'To Test1' // console Test1 isDeactivated false \nTest2 isDeactivated true click 'To Tesr2' // console Test1 isDeactivated true \nTest2 isDeactivated false
Test1 isDeactivated true
Test1 isDeactivated false \nTest2 isDeactivated true
Test1 isDeactivated true \nTest2 isDeactivated false
second: without vue-router click 'show Test4' click 'show Test3' // console Test3 isDeactivated false click 'show Test4' // console Test4 isDeactivated false
Test3 isDeactivated false
Test4 isDeactivated false
first: with vue-router@next click 'To Test2' // console Test1 isDeactivated false click 'To Test1' // console Test1 isDeactivated true \nTest2 isDeactivated false click 'To Tesr2' // console Test1 isDeactivated false \nTest2 isDeactivated true
Test1 isDeactivated false
second: without vue-router click 'show Test4' click 'show Test3' // console Test3 isDeactivated true click 'show Test4' // console Test4 isDeactivated true
Test3 isDeactivated true
Test4 isDeactivated true
Actually, when add nextTick, it will show correctly, it may caused by keep-alive which post last queue
The text was updated successfully, but these errors were encountered:
I don't see this why this should be seen as a bug. You should not be relying on
instance.deactivated
You should rather be using onActivated/onDeactivated to react to when an instance is actually being (de-)activated
onActivated
onDeactivated
Sorry, something went wrong.
No branches or pull requests
Version
3.2.26
Reproduction link
github.com
Steps to reproduce
provide two ways.
first: with vue-router@next
click 'To Test2'
click 'To Test1'
click 'To Tesr2'
second: without vue-router
click 'show Test4'
click 'show Test3'
click 'show Test4'
What is expected?
first: with vue-router@next
click 'To Test2' // console
Test1 isDeactivated true
click 'To Test1' // console
Test1 isDeactivated false \nTest2 isDeactivated true
click 'To Tesr2' // console
Test1 isDeactivated true \nTest2 isDeactivated false
second: without vue-router
click 'show Test4'
click 'show Test3' // console
Test3 isDeactivated false
click 'show Test4' // console
Test4 isDeactivated false
What is actually happening?
first: with vue-router@next
click 'To Test2' // console
Test1 isDeactivated false
click 'To Test1' // console
Test1 isDeactivated true \nTest2 isDeactivated false
click 'To Tesr2' // console
Test1 isDeactivated false \nTest2 isDeactivated true
second: without vue-router
click 'show Test4'
click 'show Test3' // console
Test3 isDeactivated true
click 'show Test4' // console
Test4 isDeactivated true
Actually, when add nextTick, it will show correctly, it may caused by keep-alive which post last queue
The text was updated successfully, but these errors were encountered: