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

Function pageHasMatch

packages/query-devtools/src/Explorer.tsx:571–577  ·  view source on GitHub ↗
(index: number)

Source from the content-addressed store, hash-verified

569 const subEntryPages = createMemo(() => chunkArray(subEntries(), 100))
570
571 const pageHasMatch = (index: number) =>
572 !!(
573 props.search &&
574 subEntryPages()[index]?.some(
575 (entry) => props.search?.match.children.get(entry.key)?.hasMatch,
576 )
577 )
578 const matchingPage = createMemo(() =>
579 subEntryPages().findIndex((_, index) => pageHasMatch(index)),
580 )

Callers 1

ExplorerFunction · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected