From 8cb0b8308801159177ec16ab5a3e23672c4c1d00 Mon Sep 17 00:00:00 2001 From: ysj16 <504427021@qq.com> Date: Tue, 25 Feb 2020 23:41:44 +0800 Subject: [PATCH] fix(renderSlot): set slot render as a STABLE_FRAGMENT (#776) fix #766 --- packages/runtime-core/src/helpers/renderSlot.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/runtime-core/src/helpers/renderSlot.ts b/packages/runtime-core/src/helpers/renderSlot.ts index 186cdfed..12f4b18d 100644 --- a/packages/runtime-core/src/helpers/renderSlot.ts +++ b/packages/runtime-core/src/helpers/renderSlot.ts @@ -35,7 +35,7 @@ export function renderSlot( Fragment, { key: props.key }, slot ? slot(props) : fallback || [], - slots._ ? 0 : PatchFlags.BAIL + slots._ ? PatchFlags.STABLE_FRAGMENT : PatchFlags.BAIL ) ) }