MCPcopy Create free account
hub / github.com/JedWatson/react-select / loadOptions

Function loadOptions

packages/react-select/src/__tests__/Async.test.tsx:174–179  ·  view source on GitHub ↗
(
    inputValue: string,
    callback: (options: readonly Option[]) => void
  )

Source from the content-addressed store, hash-verified

172test('in case of callbacks display the most recently-requested loaded options (if results are returned out of order)', () => {
173 let callbacks: ((options: readonly Option[]) => void)[] = [];
174 const loadOptions = (
175 inputValue: string,
176 callback: (options: readonly Option[]) => void
177 ) => {
178 callbacks.push(callback);
179 };
180 let { container } = render(
181 <Async
182 className="react-select"

Callers 1

useAsyncFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected