pull/16748/head
Rich Harris 4 weeks ago
commit 631513835f

@ -74,6 +74,7 @@ export function render(component, options = {}) {
if (options.context) { if (options.context) {
push(); push();
/** @type {SSRContext} */ (ssr_context).c = options.context; /** @type {SSRContext} */ (ssr_context).c = options.context;
/** @type {SSRContext} */ (ssr_context).r = payload;
} }
// @ts-expect-error // @ts-expect-error
@ -98,7 +99,7 @@ export function render(component, options = {}) {
return { return {
head, head,
html: body, html: body,
body: body body
}; };
} finally { } finally {
abort(); abort();
@ -127,6 +128,7 @@ export async function render_async(component, options = {}) {
if (options.context) { if (options.context) {
push(); push();
/** @type {SSRContext} */ (ssr_context).c = options.context; /** @type {SSRContext} */ (ssr_context).c = options.context;
/** @type {SSRContext} */ (ssr_context).r = payload;
} }
// @ts-expect-error // @ts-expect-error
@ -151,7 +153,7 @@ export async function render_async(component, options = {}) {
return { return {
head, head,
html: body, html: body,
body: body body
}; };
} finally { } finally {
abort(); abort();

Loading…
Cancel
Save