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

Function select

packages/preact-query/src/__tests__/useQuery.test.tsx:1263–1265  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

1261 queryKey: [key, count],
1262 queryFn: () => sleep(10).then(() => ({ count })),
1263 select(data) {
1264 return data.count
1265 },
1266 placeholderData: keepPreviousData,
1267 })
1268

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected