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

Method prepend

packages/react-stately/src/data/useTreeData.ts:94–94  ·  view source on GitHub ↗

* Prepends an item into a parent node as a child. * * @param parentKey - The key of the parent item to insert into. `null` for the root. * @param value - The value to insert.

(parentKey: Key | null, ...value: T[])

Source from the content-addressed store, hash-verified

92 * @param value - The value to insert.
93 */
94 prepend(parentKey: Key | null, ...value: T[]): void;
95
96 /**
97 * Removes an item from the tree by its key.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected