Skip to content

Commit 0f45875

Browse files
committed
fix(renderer): fix patch error in unstable slot
1 parent 25595f5 commit 0f45875

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/runtime-core/src/renderer.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1098,7 +1098,9 @@ function baseCreateRenderer(
10981098
dynamicChildren &&
10991099
// #2715 the previous fragment could've been a BAILed one as a result
11001100
// of renderSlot() with no valid children
1101-
n1.dynamicChildren
1101+
n1.dynamicChildren &&
1102+
// #9200 in some case stable fragment in deep unstable slot
1103+
n1?.children?.length === n2?.children?.length
11021104
) {
11031105
// a stable fragment (template root or <template v-for>) doesn't need to
11041106
// patch children order, but it may contain dynamicChildren.

0 commit comments

Comments
 (0)