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

Function select

packages/react-query/src/__tests__/useQuery.test.tsx:1294–1296  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

1292 queryKey: [key, count],
1293 queryFn: () => sleep(10).then(() => ({ count })),
1294 select(data) {
1295 return data.count
1296 },
1297 placeholderData: keepPreviousData,
1298 })
1299

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected