Skip to content

Commit 413c923

Browse files
committed
chore: update
1 parent 659c0bf commit 413c923

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/runtime-core/src/component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ export function setupComponent(
806806
const { props, children } = instance.vnode
807807
const isStateful = isStatefulComponent(instance)
808808
initProps(instance, props, isStateful, isSSR)
809-
initSlots(instance, children, optimized)
809+
initSlots(instance, children, optimized || isSSR)
810810

811811
const setupResult = isStateful
812812
? setupStatefulComponent(instance, isSSR)

packages/server-renderer/src/helpers/ssrRenderSlot.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export function ssrRenderSlotInner(
6262
parentComponent,
6363
slotScopeId ? ' ' + slotScopeId : '',
6464
)
65-
if (isArray(ret) && slotBuffer.length === 0) {
65+
if (isArray(ret)) {
6666
const validSlotContent = ensureValidVNode(ret)
6767
if (validSlotContent) {
6868
// normal slot

0 commit comments

Comments
 (0)