feat: support async layout functions (#1597)
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
This commit is contained in:
co-authored by
Asher Gomez
parent
11077227b5
commit
8325225a0d
@@ -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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user