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

Method addNode

packages/react-aria/src/focus/FocusScope.tsx:1046–1048  ·  view source on GitHub ↗
(node: TreeNode)

Source from the content-addressed store, hash-verified

1044 }
1045
1046 addNode(node: TreeNode): void {
1047 this.fastMap.set(node.scopeRef, node);
1048 }
1049
1050 removeTreeNode(scopeRef: ScopeRef): void {
1051 // never remove the root

Callers 1

FocusScopeFunction · 0.45

Calls 1

setMethod · 0.45

Tested by

no test coverage detected