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

Function select1

packages/query-core/src/__tests__/queryObserver.test.tsx:368–371  ·  view source on GitHub ↗
(data: ReturnType<typeof queryFn>)

Source from the content-addressed store, hash-verified

366 const results: Array<QueryObserverResult> = []
367 const queryFn = () => ({ count: 1 })
368 const select1 = (data: ReturnType<typeof queryFn>) => {
369 count++
370 return { myCount: data.count }
371 }
372 const select2 = (_data: ReturnType<typeof queryFn>) => {
373 count++
374 return { myCount: 99 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected