diff --git a/packages/runtime-core/src/components/KeepAlive.ts b/packages/runtime-core/src/components/KeepAlive.ts index 08e28616e9c..7a9419f3b63 100644 --- a/packages/runtime-core/src/components/KeepAlive.ts +++ b/packages/runtime-core/src/components/KeepAlive.ts @@ -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) {