Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
edison1105 committed Nov 20, 2024
1 parent 659c0bf commit 413c923
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/runtime-core/src/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,7 @@ export function setupComponent(
const { props, children } = instance.vnode
const isStateful = isStatefulComponent(instance)
initProps(instance, props, isStateful, isSSR)
initSlots(instance, children, optimized)
initSlots(instance, children, optimized || isSSR)

const setupResult = isStateful
? setupStatefulComponent(instance, isSSR)
Expand Down
2 changes: 1 addition & 1 deletion packages/server-renderer/src/helpers/ssrRenderSlot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export function ssrRenderSlotInner(
parentComponent,
slotScopeId ? ' ' + slotScopeId : '',
)
if (isArray(ret) && slotBuffer.length === 0) {
if (isArray(ret)) {
const validSlotContent = ensureValidVNode(ret)
if (validSlotContent) {
// normal slot
Expand Down

0 comments on commit 413c923

Please sign in to comment.