MCPcopy Create free account
hub / github.com/adobe/react-spectrum / processItem

Function processItem

examples/s2-vite-project/src/App.tsx:195–199  ·  view source on GitHub ↗
(node: any)

Source from the content-addressed store, hash-verified

193 getChildren: item => item.childItems ?? []
194 });
195 let processItem = (node: any): TreeItemData => ({
196 ...node.value,
197 id: node.key as string,
198 childItems: node.children ? [...node.children].map(processItem) : undefined
199 });
200 let items = treeData.items.map(processItem);
201 let {dragAndDropHooks} = useDragAndDrop({
202 getItems: keys =>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected