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

Function handler

packages/solid-query/src/useQueries.ts:325–332  ·  view source on GitHub ↗
(index: number)

Source from the content-addressed store, hash-verified

323 })
324
325 const handler = (index: number) => ({
326 get(target: QueryObserverResult, prop: keyof QueryObserverResult): any {
327 if (prop === 'data') {
328 return dataResources()[index]![0]()
329 }
330 return Reflect.get(target, prop)
331 },
332 })
333
334 const getProxies = () =>
335 state.map((s, index) => {

Callers 1

getProxiesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…