Replies: 2 comments 3 replies
-
Hi @ankitjena, We haven't looked at all at virtualisation yet as in general it should be a last resort situation. For example, in your case, I think having 2000 items to chose from is really not great UX, and with that many items, it's highly unlikely you will find any custom component that will be as performant as a native UI on all platforms. May I ask what selection your user are supposed to make? ✌️ |
Beta Was this translation helpful? Give feedback.
-
I was actually able to figure out a workaround here. Set
cc @ankitjena |
Beta Was this translation helpful? Give feedback.
-
Hey guys,
I started using the
react-select
package a few days back. Right now is I have almost 2k items to show in the select(which is rendered multiple times in a dynamic form). So I want to virtualize the select component I made.I am using react-virtual, but facing issues in this. When trying to render the select with
virtualItems
I am only getting two items.I stumbled upon this issue which says to follow the examples properly, which I tried to do. But still getting the issue.
Is there something I am doing wrong. Otherwise, is there some recommended/opinionated way of virtualizing I might be unaware of. Also, what else can be done to improve the performance of the component. Thanks for the help in advance.
Beta Was this translation helpful? Give feedback.
All reactions