fix: render state not unique per render (#1638)

This commit is contained in:
Marvin Hagemeister
2023-08-16 16:30:16 +02:00
committed by GitHub
parent b2362da281
commit f67ec8520f
11 changed files with 840 additions and 646 deletions
+9
View File
@@ -0,0 +1,9 @@
import { Handler, PageProps } from "$fresh/server.ts";
import Greeter from "../../islands/Greeter.tsx";
export const handler: Handler = (_req, ctx) =>
ctx.render({ site: ctx.params.site });
export default function Component(props: PageProps<{ site: string }>) {
return <Greeter site={props.data?.site ?? "not working"} />;
}