Problems with using keepAlive with Teleport
Vue version
3.2.45
Link to minimal reproduction
Steps to reproduce
When I set keepAlive on an A subcomponent and a Teleport component is mounted on the outermost body, the dom element inside the Teleport component still exists on the page when I switch to another B subcomponent
What is expected?
I want to know if this is the keepAlive mechanism or if it is an undetected bug
What is actually happening?
This will affect my ability to switch pages in the system. Of course, there are solutions, but it seems not ideal enough
System Info
No response
Any additional comments?
No response
I don't think it's a bug, if remove the content that would be a breaking change. you can remove content by disabling the teleport. see
I don't think it's a bug, if remove the content that would be a breaking change. you can remove content by disabling the teleport. see
I understand your idea, but this situation seems to leak the data of hidden components (although it doesn't cause much trouble for development). I'm not sure if this situation should be understood as a feature or a bug
I don't think it's a bug, if remove the content that would be a breaking change. you can remove content by disabling the teleport. see
I don't think it's a bug, if remove the content that would be a breaking change. you can remove content by disabling the teleport. see
I understand your idea, but this situation seems to leak the data of hidden components (although it doesn't cause much trouble for development). I'm not sure if this situation should be understood as a feature or a bug
and the document states that using a report does not affect the hierarchical relationship between components, so it still has a parent-child relationship with the hidden component. Should the hidden parent component and the hidden child component also be hidden using-with-components
duplicate? github.com/vuejs/core/issues/5603
duplicate? github.com/vuejs/core/issues/5603
I think so