Docs: Fix loadAsyncOptions usage (#25371)
Fixed `loadAsyncOptions` in the `AsyncSelect` component usage so that works
This commit is contained in:
@@ -90,7 +90,7 @@ Where the async function could look like this:
|
|||||||
|
|
||||||
```tsx
|
```tsx
|
||||||
const loadAsyncOptions = () => {
|
const loadAsyncOptions = () => {
|
||||||
return new Promise()<Array<SelectableValue<string>>>(resolve => {
|
return new Promise<Array<SelectableValue<string>>>(resolve => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
resolve(options);
|
resolve(options);
|
||||||
}, 2000);
|
}, 2000);
|
||||||
|
|||||||
Reference in New Issue
Block a user