Skip to content

Commit c9f437a

Browse files
committed
Remove context logging
1 parent da2d455 commit c9f437a

File tree

1 file changed

+1
-2
lines changed
  • examples/react/start-basic-cloudflare/src/utils

1 file changed

+1
-2
lines changed

examples/react/start-basic-cloudflare/src/utils/posts.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ export type PostType = {
99

1010
export const fetchPost = createServerFn({ method: 'POST' })
1111
.inputValidator((d: string) => d)
12-
.handler(async ({ data, context }) => {
13-
console.log('Request context:', context)
12+
.handler(async ({ data }) => {
1413
console.info(`Fetching post with id ${data}...`)
1514
const res = await fetch(
1615
`https://jsonplaceholder.typicode.com/posts/${data}`,

0 commit comments

Comments
 (0)