MCPcopy Index your code
hub / github.com/TanStack/query / fetchProject

Function fetchProject

examples/react/suspense/src/queries.ts:13–23  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

11}
12
13export async function fetchProject(id: string): Promise<{
14 forks_count: number
15 stargazers_count: number
16 watchers_count: number
17}> {
18 console.info('Fetching project:', id)
19
20 const response = await fetch(`https://api.github.com/repos/${id}`)
21 await new Promise((r) => setTimeout(r, 1000))
22 return await response.json()
23}

Callers 2

ProjectsFunction · 0.90
ProjectFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…