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

Function getPostById

examples/preact/basic/src/index.tsx:58–63  ·  view source on GitHub ↗
(id: number)

Source from the content-addressed store, hash-verified

56}
57
58const getPostById = async (id: number): Promise<Post> => {
59 const response = await fetch(
60 `https://jsonplaceholder.typicode.com/posts/${id}`,
61 )
62 return await response.json()
63}
64
65function Post({
66 postId,

Callers 1

PostFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected