fix: render state not unique per render (#1638)
This commit is contained in:
@@ -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"} />;
|
||||
}
|
||||
Reference in New Issue
Block a user