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

Function toggleExpanded

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

Source from the content-addressed store, hash-verified

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

Callers 1

ExplorerFunction · 0.85

Calls 1

hasSearchMatchingChildFunction · 0.85

Tested by

no test coverage detected