feat(ssr): render portals (#714)

This commit is contained in:
Dmitry Sharshakov
2020-02-16 01:41:20 +03:00
committed by GitHub
parent aa09f01a1e
commit e495fa4a18
3 changed files with 93 additions and 11 deletions

View File

@@ -16,7 +16,7 @@ export function ssrRenderSlot(
slotProps: Props,
fallbackRenderFn: (() => void) | null,
push: PushFn,
parentComponent: ComponentInternalInstance | null = null
parentComponent: ComponentInternalInstance
) {
const slotFn = slots[slotName]
// template-compiled slots are always rendered as fragments