MCPcopy Create free account
hub / github.com/experdot/pointer / handleExpand

Function handleExpand

src/renderer/src/components/common/TreeView.tsx:590–595  ·  view source on GitHub ↗
(keys)

Source from the content-addressed store, hash-verified

588 }
589
590 const handleExpand: TreeProps['onExpand'] = (keys) => {
591 const newExpanded = keys.filter((k) => !expandedKeys.includes(k as string))
592 const newCollapsed = expandedKeys.filter((k) => !keys.includes(k))
593 newExpanded.forEach((id) => toggleFolderExpanded(id as string))
594 newCollapsed.forEach((id) => toggleFolderExpanded(id as string))
595 }
596
597 const handleSelect: TreeProps['onSelect'] = (_selectedKeys, info) => {
598 const nodeData = info.node as unknown as TreeNodeData<TItem, TFolder>

Callers

nothing calls this directly

Calls 1

toggleFolderExpandedFunction · 0.85

Tested by

no test coverage detected