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

Function isExpanded

packages/query-devtools/src/Explorer.tsx:484–484  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

482 !!props.search &&
483 [...props.search.match.children.values()].some((child) => child.hasMatch)
484 const isExpanded = () => expanded() || hasSearchMatchingChild()
485 const toggleExpanded = () => {
486 if (!hasSearchMatchingChild()) setExpanded((old) => !old)
487 }

Callers 1

ExplorerFunction · 0.85

Calls 1

hasSearchMatchingChildFunction · 0.85

Tested by

no test coverage detected