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

Function load

packages/react-aria-components/test/ComboBox.test.js:1127–1131  ·  view source on GitHub ↗
({filterText})

Source from the content-addressed store, hash-verified

1125 let list = useAsyncList({
1126 getKey: item => item.id,
1127 async load({filterText}) {
1128 let rows = itemsForFilterText(filterText);
1129 await new Promise(resolve => setTimeout(resolve, ASYNC_DELAY_MS));
1130 return {items: rows};
1131 }
1132 });
1133
1134 return (

Callers

nothing calls this directly

Calls 1

itemsForFilterTextFunction · 0.85

Tested by

no test coverage detected