fix(KeepAlive): remove cached VNode properly (#5260)

fix #5258
This commit is contained in:
edison 2022-01-16 15:37:14 +08:00 committed by GitHub
parent 55cc4af25e
commit 2e3e183b4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -174,7 +174,7 @@ const KeepAliveImpl: ComponentOptions = {
function unmount(vnode: VNode) { function unmount(vnode: VNode) {
// reset the shapeFlag so it can be properly unmounted // reset the shapeFlag so it can be properly unmounted
resetShapeFlag(vnode) resetShapeFlag(vnode)
_unmount(vnode, instance, parentSuspense) _unmount(vnode, instance, parentSuspense, true)
} }
function pruneCache(filter?: (name: string) => boolean) { function pruneCache(filter?: (name: string) => boolean) {