Function
loadOptions
(
inputValue: string,
callback: (options: readonly Option[]) => void
)
Source from the content-addressed store, hash-verified
| 172 | test('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" |
Tested by
no test coverage detected