Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/adobe/react-spectrum
/ getItem
Function
getItem
packages/react-stately/src/data/useAsyncList.ts:350–352 ·
view source on GitHub ↗
(key: Key)
Source
from the content-addressed store, hash-verified
348
error: data.error,
349
filterText: data.filterText,
350
getItem(key: Key) {
351
return
data.items.find(item => getKey(item) === key);
352
},
353
reload() {
354
dispatchFetch({
type
:
'loading'
}, load);
355
},
Callers
nothing calls this directly
Calls
1
getKey
Function · 0.50
Tested by
no test coverage detected