MCPcopy
hub / github.com/TanStack/query / genItems

Function genItems

packages/react-query/src/__tests__/useInfiniteQuery.test.tsx:1466–1467  ·  view source on GitHub ↗
(size: number)

Source from the content-addressed store, hash-verified

1464 const key = queryKey()
1465
1466 const genItems = (size: number) =>
1467 [...new Array(size)].fill(null).map((_, d) => d)
1468 const items = genItems(15)
1469 const limit = 3
1470

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…