Explorar o código

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

fix #766
ysj16 %!s(int64=6) %!d(string=hai) anos
pai
achega
8cb0b83088
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/runtime-core/src/helpers/renderSlot.ts

+ 1 - 1
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
     )
   )
 }