feat: support async layout functions (#1597)

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
This commit is contained in:
Marvin Hagemeister
2023-08-08 14:15:02 +02:00
committed by GitHub
co-authored by Asher Gomez
parent 11077227b5
commit 8325225a0d
11 changed files with 277 additions and 65 deletions
@@ -0,0 +1,10 @@
import { RouteContext } from "$fresh/server.ts";
export default async function AsyncSubPage(req: Request, ctx: RouteContext) {
await new Promise((r) => setTimeout(r, 10));
return (
<div class="async-sub-page">
<p>Async Sub page</p>
</div>
);
}