Explorar el Código

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

fix #766
ysj16 hace 6 años
padre
commit
8cb0b83088
Se han modificado 1 ficheros con 1 adiciones y 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
     )
   )
 }