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

Class

packages/react-stately/src/tree/TreeCollection.ts:15–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13import {Collection, Key, Node} from '@react-types/shared';
14
15export class TreeCollection<T> implements Collection<Node<T>> {
16 private keyMap: Map<Key, Node<T>> = new Map();
17 private iterable: Iterable<Node<T>>;
18 private firstKey: Key | null = null;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected