We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b555f02 commit 0f595ecCopy full SHA for 0f595ec
packages/runtime-core/src/helpers/renderSlot.ts
@@ -37,6 +37,7 @@ export function renderSlot(
37
isAsyncWrapper(currentRenderingInstance!.parent) &&
38
currentRenderingInstance!.parent.ce)
39
) {
40
+ const hasProps = Object.keys(props).length > 0
41
// in custom element mode, render <slot/> as actual slot outlets
42
// wrap it with a fragment because in shadowRoot: false mode the slot
43
// element gets replaced by injected content
@@ -47,7 +48,7 @@ export function renderSlot(
47
48
Fragment,
49
null,
50
[createVNode('slot', props, fallback && fallback())],
- PatchFlags.STABLE_FRAGMENT,
51
+ hasProps ? PatchFlags.BAIL : PatchFlags.STABLE_FRAGMENT,
52
)
53
54
}
0 commit comments