-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Progressive loading in dropdown/select widget #4444
Comments
I have a form where I need input from the dropdown which is getting data from the server. If the data is too much, It might take time to load all the contents in one go. So If we can keep loading the data in chunks, as and when the user scrolls down, would help. |
@Tooluloope kindly identify a solution around this |
I currently, use a Virtual scrolling feature enabled on the RC-Select to handle this performance issue. Although this still needs a deep thought, because there might be times you'd want to access something like |
Also @somangshu isn't this the same as #5018, since they both have to be server rendered to filter or load options |
+1 Maybe the dropdown isn't the best widget for this. Should we do a typeahead widget instead? |
@Tooluloope @Nikhil-Nandagopal this is related to virtualisation of the list and infinite loading. The filtering of list feature is raised inside #5018 where the discussion also points to an autocomplete/typeahead widget for async loading. |
@somangshu Technically you are right but my question is should we even support infinite scrolling in a dropdown. I am not sure if dropdowns typically behave that way and the right UX pattern here maybe to use a typeahead |
Closing this in favour of #5018 |
Currently, the select widget loads and shows all options given to it. It can be populated by the response from an API action, but if there's a lot of items in the dropdown, it can get slow to even load all of those items from the API action. There should be a way to load just a few, and then load more as the user scrolls down for more, or perhaps when they filter for something specific inside the dropdown.
The text was updated successfully, but these errors were encountered: