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

Function inorder

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

Source from the content-addressed store, hash-verified

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