Skip to content

Commit 2e3e183

Browse files
authored
fix(KeepAlive): remove cached VNode properly (#5260)
fix #5258
1 parent 55cc4af commit 2e3e183

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: packages/runtime-core/src/components/KeepAlive.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ const KeepAliveImpl: ComponentOptions = {
174174
function unmount(vnode: VNode) {
175175
// reset the shapeFlag so it can be properly unmounted
176176
resetShapeFlag(vnode)
177-
_unmount(vnode, instance, parentSuspense)
177+
_unmount(vnode, instance, parentSuspense, true)
178178
}
179179

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

0 commit comments

Comments
 (0)