We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da2d455 commit c9f437aCopy full SHA for c9f437a
examples/react/start-basic-cloudflare/src/utils/posts.tsx
@@ -9,8 +9,7 @@ export type PostType = {
9
10
export const fetchPost = createServerFn({ method: 'POST' })
11
.inputValidator((d: string) => d)
12
- .handler(async ({ data, context }) => {
13
- console.log('Request context:', context)
+ .handler(async ({ data }) => {
14
console.info(`Fetching post with id ${data}...`)
15
const res = await fetch(
16
`https://jsonplaceholder.typicode.com/posts/${data}`,
0 commit comments