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

Method update

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

* Updates an item in the list. * * @param key - The key of the item to update. * @param newValue - The new value for the item, or a function that returns the new value based on * the previous value.

(key: Key, newValue: T | ((prev: T) => T))

Source from the content-addressed store, hash-verified

138 * the previous value.
139 */
140 update(key: Key, newValue: T | ((prev: T) => T)): void;
141}
142
143export interface ListState<T> {

Callers 15

updateMethod · 0.65
relayoutMethod · 0.65
transformFunction · 0.65
onInsertFunction · 0.65
onRootDropFunction · 0.65
processCsfFunction · 0.65
updateMethod · 0.65
updateMethod · 0.65

Calls

no outgoing calls

Tested by 2

EditableTableFunction · 0.52
ActionEditableTableFunction · 0.52