Skip to content

Commit 361531c

Browse files
committed
fix(compiler-core): update
1 parent 4166e3c commit 361531c

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

packages/runtime-core/src/renderer.ts

+1-8
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,6 @@ function baseCreateRenderer(
796796
) => {
797797
const el = (n2.el = n1.el!)
798798
let { patchFlag, dynamicChildren, dirs } = n2
799-
let { dynamicChildren: prevDynamicChildren } = n1
800799
// #1426 take the old vnode's patch flag into account since user may clone a
801800
// compiler-generated vnode, which de-opts to FULL_PROPS
802801
patchFlag |= n1.patchFlag & PatchFlags.FULL_PROPS
@@ -814,13 +813,7 @@ function baseCreateRenderer(
814813
}
815814
parentComponent && toggleRecurse(parentComponent, true)
816815

817-
if (
818-
(__DEV__ && isHmrUpdating) ||
819-
(dynamicChildren &&
820-
prevDynamicChildren &&
821-
dynamicChildren.length === 0 &&
822-
prevDynamicChildren.length === 0)
823-
) {
816+
if (__DEV__ && isHmrUpdating) {
824817
// HMR updated, force full diff
825818
patchFlag = 0
826819
optimized = false

0 commit comments

Comments
 (0)