Skip to content

Commit 33a25e7

Browse files
committed
prevent data.pendingInsert to keep reference to removed nodes (fix vuejs#5839)
1 parent 8d56a49 commit 33a25e7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/core/vdom/patch.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ export function createPatchFunction (backend) {
195195
function initComponent (vnode, insertedVnodeQueue) {
196196
if (isDef(vnode.data.pendingInsert)) {
197197
insertedVnodeQueue.push.apply(insertedVnodeQueue, vnode.data.pendingInsert)
198+
vnode.data.pendingInsert = null
198199
}
199200
vnode.elm = vnode.componentInstance.$el
200201
if (isPatchable(vnode)) {

0 commit comments

Comments
 (0)