Skip to content

Commit

Permalink
chore: remove renderer binding
Browse files Browse the repository at this point in the history
  • Loading branch information
natemoo-re committed Jun 20, 2022
1 parent fcd240c commit b99f21e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/astro/src/runtime/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ Did you mean to add ${formatList(probableRendererNames.map((r) => '`' + r + '`')
let error;
for (const r of renderers) {
try {
if (await r.ssr.check.call({ result }, Component, props, children)) {
if (await r.ssr.check(Component, props, children)) {
renderer = r;
break;
}
Expand Down Expand Up @@ -281,7 +281,7 @@ Did you mean to enable ${formatList(probableRendererNames.map((r) => '`' + r + '
// We already know that renderer.ssr.check() has failed
// but this will throw a much more descriptive error!
renderer = matchingRenderers[0];
({ html } = await renderer.ssr.renderToStaticMarkup.call({ result }, Component, props, children, metadata));
({ html } = await renderer.ssr.renderToStaticMarkup(Component, props, children, metadata));
} else {
throw new Error(`Unable to render ${metadata.displayName}!
Expand All @@ -300,7 +300,7 @@ If you're still stuck, please open an issue on GitHub or join us at https://astr
if (metadata.hydrate === 'only') {
html = await renderSlot(result, slots?.fallback);
} else {
({ html } = await renderer.ssr.renderToStaticMarkup.call({ result }, Component, props, children, metadata));
({ html } = await renderer.ssr.renderToStaticMarkup(Component, props, children, metadata));
}
}

Expand Down

0 comments on commit b99f21e

Please sign in to comment.