fix: add route type to props (#3382)

This commit is contained in:
fry69
2025-09-10 10:58:23 +02:00
committed by GitHub
parent fb341e4ab7
commit db5b2a3b82
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -251,6 +251,7 @@ export class Context<State> {
req: this.req,
state: this.state,
url: this.url,
route: this.route,
});
} else {
hasApp = false;
+2
View File
@@ -61,6 +61,7 @@ export type PageProps<Data = unknown, T = unknown> =
| "isPartial"
| "Component"
| "error"
| "route"
>
& { data: Data };
@@ -85,6 +86,7 @@ export async function renderRouteComponent<State>(
req: ctx.req,
state: ctx.state,
url: ctx.url,
route: ctx.route,
};
if (isAsyncAnyComponent(def.component)) {