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

Function handler

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

Source from the content-addressed store, hash-verified

409 })
410
411 const handler = (index: number) => ({
412 get(target: QueryObserverResult, prop: keyof QueryObserverResult): any {
413 if (prop === 'data') {
414 return dataResources()[index]![0]()
415 }
416 return Reflect.get(target, prop)
417 },
418 })
419
420 const getProxies = () =>
421 state.map((s, index) => {

Callers 1

getProxiesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected