We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cfe290 commit 68365b9Copy full SHA for 68365b9
packages/runtime-core/src/renderer.ts
@@ -487,7 +487,7 @@ function baseCreateRenderer(
487
parentSuspense = null,
488
isSVG = false,
489
slotScopeIds = null,
490
- optimized = false
+ optimized = __DEV__ && isHmrUpdating ? false : !!n2.dynamicChildren
491
) => {
492
// patching & not same type, unmount old tree
493
if (n1 && !isSameVNodeType(n1, n2)) {
@@ -772,7 +772,7 @@ function baseCreateRenderer(
772
parentSuspense,
773
isSVG && type !== 'foreignObject',
774
slotScopeIds,
775
- optimized || !!vnode.dynamicChildren
+ optimized
776
)
777
}
778
0 commit comments