MCPcopy Create free account
hub / github.com/TanStack/devtools / getPostById

Function getPostById

examples/react/basic/src/index.tsx:77–82  ·  view source on GitHub ↗
(id: number)

Source from the content-addressed store, hash-verified

75 </div>
76 )
77}
78
79const getPostById = async (id: number): Promise<Post> => {
80 const response = await fetch(
81 `https://jsonplaceholder.typicode.com/posts/${id}`,
82 )
83 return await response.json()
84}
85

Callers 1

usePostFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected