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

Function inorder

packages/react-stately/src/data/useTreeData.ts:529–534  ·  view source on GitHub ↗
(child)

Source from the content-addressed store, hash-verified

527 }
528
529 function inorder(child) {
530 // in-order so we add items as we encounter them in the tree, then we can insert them in expected order later
531 if (keyArray.includes(child.key)) {
532 inOrderKeys.set(child.key, i++);
533 }
534 }
535
536 function postorder(child) {
537 // remove items and update the tree from the leaves and work upwards toward the root, this way

Callers 1

traversalFunction · 0.85

Calls 1

setMethod · 0.45

Tested by

no test coverage detected