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

Function select1

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

Source from the content-addressed store, hash-verified

399 const results: Array<QueryObserverResult> = []
400 const queryFn = () => ({ count: 1 })
401 const select1 = (data: ReturnType<typeof queryFn>) => {
402 count++
403 return { myCount: data.count }
404 }
405 const select2 = (_data: ReturnType<typeof queryFn>) => {
406 count++
407 return { myCount: 99 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected