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/useListData.ts:182–184 ·
view source on GitHub ↗
(key: Key)
Source
from the content-addressed store, hash-verified
180
items: filteredItems,
181
...createListActions({getKey}, setState),
182
getItem(key: Key) {
183
return
state.items.find(item => getKey(item) === key);
184
}
185
};
186
}
187
Callers
nothing calls this directly
Calls
1
getKey
Function · 0.50
Tested by
no test coverage detected