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

Function isExpanded

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

Source from the content-addressed store, hash-verified

445 !!props.search &&
446 [...props.search.match.children.values()].some((child) => child.hasMatch)
447 const isExpanded = () => expanded() || hasSearchMatchingChild()
448 const toggleExpanded = () => {
449 if (!hasSearchMatchingChild()) setExpanded((old) => !old)
450 }

Callers 1

ExplorerFunction · 0.85

Calls 1

hasSearchMatchingChildFunction · 0.85

Tested by

no test coverage detected