Closed okjesse closed 7 years ago
keep-alive include works on component names, not route names. Your Foo component doesn't have a name.
It happens because you have not given Home component a name
@sqal thank you,it's woks
Hi sqal,
In both the problem fiddle & your solution fiddle, both components have names,
const Home = { name: 'Home',
const Foo = { name: 'Foo'
so not sure when you say
It happens because you have not given Home component a name
Kindly clarify.
thanks
Version
2.4.4
Reproduction link
https://jsfiddle.net/okjesse/k94fphsg/
Steps to reproduce
keep-alive include parameter is not worked with router-view
What is expected?
Home is not keep alived
What is actually happening?
home is keep alived