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

Function append

packages/react-stately/src/data/useListData.ts:280–282  ·  view source on GitHub ↗
(...values: T[])

Source from the content-addressed store, hash-verified

278 dispatch(state => insert(state, 0, ...values));
279 },
280 append(...values: T[]) {
281 dispatch(state => insert(state, state.items.length, ...values));
282 },
283 remove(...keys: Key[]) {
284 dispatch(state => {
285 let keySet = new Set(keys);

Callers

nothing calls this directly

Calls 1

insertFunction · 0.70

Tested by

no test coverage detected