From 45403e34bdda4c9281a71c3589093b0b6a823fe3 Mon Sep 17 00:00:00 2001 From: linzhe Date: Sat, 16 Nov 2024 16:52:29 +0800 Subject: [PATCH 1/3] fix: should check if it is STABLE_FRAGMENT at runtime --- packages/runtime-core/src/renderer.ts | 3 ++- packages/vue/__tests__/index.spec.ts | 30 +++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/packages/runtime-core/src/renderer.ts b/packages/runtime-core/src/renderer.ts index 90cc22f54..98f59f8e1 100644 --- a/packages/runtime-core/src/renderer.ts +++ b/packages/runtime-core/src/renderer.ts @@ -1079,7 +1079,8 @@ function baseCreateRenderer( dynamicChildren && // #2715 the previous fragment could've been a BAILed one as a result // of renderSlot() with no valid children - n1.dynamicChildren + n1.dynamicChildren && + n1.dynamicChildren.length === dynamicChildren.length ) { // a stable fragment (template root or