From: edison Date: Sun, 16 Jan 2022 07:37:14 +0000 (+0800) Subject: fix(KeepAlive): remove cached VNode properly (#5260) X-Git-Tag: v3.2.27~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e3e183b4f19c9e25865e35438653cbc9bf01afc;p=thirdparty%2Fvuejs%2Fcore.git fix(KeepAlive): remove cached VNode properly (#5260) fix #5258 --- diff --git a/packages/runtime-core/src/components/KeepAlive.ts b/packages/runtime-core/src/components/KeepAlive.ts index 08e28616e9..7a9419f3b6 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) {