MCPcopy Create free account
hub / github.com/TanStack/query / queryFn

Function queryFn

packages/svelte-query/tests/createQuery/createQuery.test-d.ts:134–136  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

132 const key = createKey()
133
134 function queryFn<T = string>(): Promise<T> {
135 return Promise.resolve({} as T)
136 }
137
138 const query = createQuery(() => ({
139 queryKey: key,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected