fix(runtime-core): fix missed updates when passing vnode to <component :is>
fix #4903
This commit is contained in:
parent
0f00cf43cf
commit
ba17792b72
@ -510,6 +510,14 @@ function _createVNode(
|
|||||||
if (children) {
|
if (children) {
|
||||||
normalizeChildren(cloned, children)
|
normalizeChildren(cloned, children)
|
||||||
}
|
}
|
||||||
|
if (isBlockTreeEnabled > 0 && !isBlockNode && currentBlock) {
|
||||||
|
if (cloned.shapeFlag & ShapeFlags.COMPONENT) {
|
||||||
|
currentBlock[currentBlock.indexOf(type)] = cloned
|
||||||
|
} else {
|
||||||
|
currentBlock.push(cloned)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
cloned.patchFlag |= PatchFlags.BAIL
|
||||||
return cloned
|
return cloned
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user