Feature Request: Add maxOptions prop #4427
Replies: 5 comments
-
I think the follow up question would be how to determine what options shall be filtered? I think you may be asking for the incremental loading of the options. |
Beta Was this translation helpful? Give feedback.
-
Not really! Say for example you have an AsyncSelect component, and your search returns 10,000 results. You need a mechanism to restrict the number of items rendered for performance reasons. It may not make a lot of sense for |
Beta Was this translation helpful? Give feedback.
-
I needed this too, so I pushed this : #3229 Actually, I need it on a non-async select because sometimes I have > 10 000 options, and for performance reason I want to limit the number of shown options, and let the user type to find more ... |
Beta Was this translation helpful? Give feedback.
-
Is this gonna be added any time soon? |
Beta Was this translation helpful? Give feedback.
-
Greetings, I believe the use case for this would be best suitable as a new prop in
|
Beta Was this translation helpful? Give feedback.
-
Prop to restrict the number of results
We need a way to restrict the number of results rendered on the Select/Async select components.
Use case
This is extremely useful if the number of options is too high and if someone wants to limit the items being displayed to improve performance.
API
Add
maxOptions
optional prop for Select/AsyncSelect which takes a number.Beta Was this translation helpful? Give feedback.
All reactions