diff --git a/deno.json b/deno.json index 9f2fc4ff3..bf11c67ee 100644 --- a/deno.json +++ b/deno.json @@ -36,5 +36,5 @@ "jsx": "react-jsx", "jsxImportSource": "preact" }, - "version": "0.52.2" + "version": "0.52.3" } diff --git a/website/mod.ts b/website/mod.ts index bbc90ad21..96e344d14 100644 --- a/website/mod.ts +++ b/website/mod.ts @@ -259,7 +259,7 @@ export const onBeforeResolveProps = < const newRoutes: T = { ...props, pageSections: props.pageSections?.map((section) => - asResolved(section, true) + asResolved(section, false) ), errorPage: props.errorPage ? asResolved(props.errorPage, true) diff --git a/website/pages/Page.tsx b/website/pages/Page.tsx index 69ad7fd15..9da708d4a 100644 --- a/website/pages/Page.tsx +++ b/website/pages/Page.tsx @@ -162,10 +162,7 @@ export const loader = async ( const pageSections = await Promise.all( (ctx.pageSections || [])?.map(async (section) => { - if (isDeferred(section)) { - return await section() as Section; - } - return section; + return await ctx.get(section); }), );