pruneCache function why not use isAsyncWrapper to determine vnode is AsyncComponentWrapper
Vue version
v3.3.6
Link to minimal reproduction
v3.3.6
Steps to reproduce
function pruneCache(filter?: (name: string) => boolean) {
cache.forEach((vnode, key) => {
const name = getComponentName(vnode.type as ConcreteComponent)
if (name && (!filter || !filter(name))) {
pruneCacheEntry(key)
}
})
}
What is expected?
function pruneCache(filter?: (name: string) => boolean) {
cache.forEach((vnode, key) => {
const name = getComponentName(isAsyncWrapper(vnode)
? vnode.type.__asyncResolved || {}
: comp);
if (name && (!filter || !filter(name))) {
pruneCacheEntry(key)
}
})
}
What is actually happening?
when you change include ,AsyncComponentWrappers will unmount,but i don't want to unmount.
System Info
No response
Any additional comments?
No response