Skip to content

Commit

Permalink
chore: add more case
Browse files Browse the repository at this point in the history
  • Loading branch information
edison1105 committed Sep 28, 2023
1 parent 5336809 commit c770a70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/runtime-core/src/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ function baseCreateRenderer(
n1 = null
}

if (n2.patchFlag === PatchFlags.BAIL) {
if (n2.patchFlag === PatchFlags.BAIL || (n1 && !n1.dynamicChildren)) {
optimized = false
n2.dynamicChildren = null
}
Expand Down Expand Up @@ -839,7 +839,7 @@ function baseCreateRenderer(
// necessary for HMR
traverseStaticChildren(n1, n2)
}
} else if (!optimized || !dynamicChildren || !n1.dynamicChildren) {
} else if (!optimized) {
// full diff
patchChildren(
n1,
Expand Down

0 comments on commit c770a70

Please sign in to comment.