Skip to content

Commit

Permalink
fix(KeepAlive): remove cached VNode properly (#5260)
Browse files Browse the repository at this point in the history
fix #5258
  • Loading branch information
edison1105 committed Jan 16, 2022
1 parent 55cc4af commit 2e3e183
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime-core/src/components/KeepAlive.ts
Expand Up @@ -174,7 +174,7 @@ const KeepAliveImpl: ComponentOptions = {
function unmount(vnode: VNode) {
// reset the shapeFlag so it can be properly unmounted
resetShapeFlag(vnode)
_unmount(vnode, instance, parentSuspense)
_unmount(vnode, instance, parentSuspense, true)
}

function pruneCache(filter?: (name: string) => boolean) {
Expand Down

0 comments on commit 2e3e183

Please sign in to comment.