Replies: 1 comment
-
At the moment, react-spectrum/packages/@react-stately/data/src/useAsyncList.ts Lines 315 to 318 in aa988c5 Maybe you could conditionally use a load function that returns an empty list until the ListBox is opened? let list = useAsyncList({
load: readyToLoad ? load : () => ({ items: [] })
}); also you can use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I was hoping to see if there was a smart way I could manually trigger the useAsyncList
load
method rather than having it automatically triggered. I want to wait until the user opens the ListBox before making the API call. Is this possible?Thanks,
Brandon
Beta Was this translation helpful? Give feedback.
All reactions