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

Method update

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

* Updates an item in the tree. * * @param key - The key of the item to update. * @param newValue - The new value for the item.

(key: Key, newValue: T)

Source from the content-addressed store, hash-verified

138 * @param newValue - The new value for the item.
139 */
140 update(key: Key, newValue: T): void;
141}
142
143interface TreeDataState<T extends object> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected