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

Function inorder

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

Source from the content-addressed store, hash-verified

518 }
519
520 function inorder(child) {
521 // in-order so we add items as we encounter them in the tree, then we can insert them in expected order later
522 if (keyArray.includes(child.key)) {
523 inOrderKeys.set(child.key, i++);
524 }
525 }
526
527 function postorder(child) {
528 // 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