fix(runtime-core): enter optimized mode for component as root
fix #3943
This commit is contained in:
parent
1cfe290352
commit
68365b9b2b
@ -487,7 +487,7 @@ function baseCreateRenderer(
|
|||||||
parentSuspense = null,
|
parentSuspense = null,
|
||||||
isSVG = false,
|
isSVG = false,
|
||||||
slotScopeIds = null,
|
slotScopeIds = null,
|
||||||
optimized = false
|
optimized = __DEV__ && isHmrUpdating ? false : !!n2.dynamicChildren
|
||||||
) => {
|
) => {
|
||||||
// patching & not same type, unmount old tree
|
// patching & not same type, unmount old tree
|
||||||
if (n1 && !isSameVNodeType(n1, n2)) {
|
if (n1 && !isSameVNodeType(n1, n2)) {
|
||||||
@ -772,7 +772,7 @@ function baseCreateRenderer(
|
|||||||
parentSuspense,
|
parentSuspense,
|
||||||
isSVG && type !== 'foreignObject',
|
isSVG && type !== 'foreignObject',
|
||||||
slotScopeIds,
|
slotScopeIds,
|
||||||
optimized || !!vnode.dynamicChildren
|
optimized
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user