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

Function handler

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

Source from the content-addressed store, hash-verified

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

Callers 1

getProxiesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected