Skip to content

Commit cfad1d8

Browse files
bartlomiejuclaude
andcommitted
fix: use page() instead of ctx.render() in recipe partial routes
ctx.render() requires a vnode argument; use page() to delegate rendering to the default page export instead. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 0e07166 commit cfad1d8

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

www/routes/recipes/lemon-honey-tea.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { page } from "fresh";
12
import { Partial } from "fresh/runtime";
23
import { define } from "../../utils/state.ts";
34

@@ -9,7 +10,7 @@ export const handler = define.handlers({
910
headers: { location: "/#partials" },
1011
});
1112
}
12-
return ctx.render();
13+
return page();
1314
},
1415
});
1516

www/routes/recipes/lemonade.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { page } from "fresh";
12
import { Partial } from "fresh/runtime";
23
import { define } from "../../utils/state.ts";
34

@@ -9,7 +10,7 @@ export const handler = define.handlers({
910
headers: { location: "/#partials" },
1011
});
1112
}
12-
return ctx.render();
13+
return page();
1314
},
1415
});
1516

www/routes/recipes/lemondrop.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { page } from "fresh";
12
import { Partial } from "fresh/runtime";
23
import { define } from "../../utils/state.ts";
34

@@ -9,7 +10,7 @@ export const handler = define.handlers({
910
headers: { location: "/#partials" },
1011
});
1112
}
12-
return ctx.render();
13+
return page();
1314
},
1415
});
1516

0 commit comments

Comments
 (0)