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

Function toggleExpanded

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

Source from the content-addressed store, hash-verified

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 }
488 const [expandedPages, setExpandedPages] = createSignal<Array<number>>([])
489 const nativeObjectType = createMemo(() => getNativeObjectType(props.value))
490 const childrenEditable = createMemo(

Callers 1

ExplorerFunction · 0.85

Calls 1

hasSearchMatchingChildFunction · 0.85

Tested by

no test coverage detected