Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/adobe/react-spectrum
/ prepend
Function
prepend
packages/react-stately/src/data/useListData.ts:277–279 ·
view source on GitHub ↗
(...values: T[])
Source
from the content-addressed store, hash-verified
275
});
276
},
277
prepend(...values: T[]) {
278
dispatch(state => insert(state, 0, ...values));
279
},
280
append(...values: T[]) {
281
dispatch(state => insert(state, state.items.length, ...values));
282
},
Callers
nothing calls this directly
Calls
1
insert
Function · 0.70
Tested by
no test coverage detected