Select
component should defend against overly-long list of options
#3835
Labels
Select
component should defend against overly-long list of options
#3835
By default, the
select
component will render all of their options values, which can be a (potentially serious) performance issue as DOM elements are created for every one.We have an
enabledWindowed
prop that is usable under certain circumstances - not async, not creatable - and will use a virtual rendering window to avoid this issue. But that prop is false by default, and again cannot be used in all cases.react-select 4.3 → 5.x
#3426)? We might well want to revisit that upgrade before changing anything substantial here.The risk with the status quo is that a select might appear to behave very well in development or with some surrounding query that limits its options, but then if a long list of is unexpectedly presented, the rendering delay can be bad enough to freeze up the browser.
The text was updated successfully, but these errors were encountered: