fix(keep-alive): fix keep-alive memory leak

close #12827
This commit is contained in:
Evan You 2023-12-07 16:12:36 +08:00
parent 3650c12f7d
commit 2632249925

View File

@ -62,6 +62,8 @@ const componentVNodeHooks = {
vnode, // new parent vnode
options.children // new children
)
// #12187 unset children reference after use to avoid memory leak
options.children = undefined
},
insert(vnode: MountedComponentVNode) {