Skip to content

Commit

Permalink
fix(keep-alive): fix keep-alive memory leak
Browse files Browse the repository at this point in the history
close #12827
  • Loading branch information
yyx990803 committed Dec 7, 2023
1 parent 3650c12 commit 2632249
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/vdom/create-component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 2632249

Please sign in to comment.