From fcfa0711617a07bb84b2c75738a9c706925e67a0 Mon Sep 17 00:00:00 2001 From: daiwei Date: Fri, 30 Apr 2021 10:20:36 +0800 Subject: [PATCH] fix(rumtime-core): avoid normalize slots if it has already been initialized --- packages/runtime-core/src/componentSlots.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/runtime-core/src/componentSlots.ts b/packages/runtime-core/src/componentSlots.ts index f1eacd8703d..64d10e0c090 100644 --- a/packages/runtime-core/src/componentSlots.ts +++ b/packages/runtime-core/src/componentSlots.ts @@ -160,7 +160,7 @@ export const updateSlots = ( delete slots._ } } - } else { + } else if (!(children as any)[InternalObjectKey]) { needDeletionCheck = !(children as RawSlots).$stable normalizeObjectSlots(children as RawSlots, slots) }