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

Function processItem

examples/s2-next-macros/src/app/page.tsx:200–204  ·  view source on GitHub ↗
(node: any)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected