fix(renderSlot): set slot render as a STABLE_FRAGMENT (#776)

fix #766
This commit is contained in:
ysj16
2020-02-25 23:41:44 +08:00
committed by GitHub
parent 4a5b91bd1f
commit 8cb0b83088

View File

@@ -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
)
)
}