downshift icon indicating copy to clipboard operation
downshift copied to clipboard

Lazy loading dropdown options only when open

Open aleksandrlat opened this issue 4 years ago • 0 comments

Sorry I could not find an example or existing issue about this. Google also didn't help :(

I want to implement lazy dropdown with infinite scroll. I want to load options only when dropdown is open. I'm using useCombobox hook.

An example of how to implement this would really be appreciated.

I struggle with the problem that useCombobox hook needs items to be passed to it even if dropdown is not open yet.

Thanks in advance!

aleksandrlat avatar May 31 '21 17:05 aleksandrlat