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

Function pageHasMatch

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

Source from the content-addressed store, hash-verified

532 const subEntryPages = createMemo(() => chunkArray(subEntries(), 100))
533
534 const pageHasMatch = (index: number) =>
535 !!(
536 props.search &&
537 subEntryPages()[index]?.some(
538 (entry) => props.search?.match.children.get(entry.key)?.hasMatch,
539 )
540 )
541 const matchingPage = createMemo(() =>
542 subEntryPages().findIndex((_, index) => pageHasMatch(index)),
543 )

Callers 1

ExplorerFunction · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected