react-spectrum
react-spectrum copied to clipboard
react-aria-components Select performance issues
Provide a general summary of the issue here
We have a virtualized select with many items that is slow to load. If the select is in a dialog the issue is more apparent (opening the dialog is slowed down by the select with many items)
This heppens immediately upon load and not when the options are presented.
Looking into the code I think this is cause the children are first given to the CollectionBuilder, which blocks rendering until the collection is built.
๐ค Expected Behavior?
Selects render quickly
๐ฏ Current Behavior
Selects render slow the more items they have in them
๐ Possible Solution
Do the work more lazily so the select trigger can render
๐ฆ Context
No response
๐ฅ๏ธ Steps to Reproduce
Have a select with many options
Version
1.10.1
What browsers are you seeing the problem on?
Chrome
If other, please specify.
No response
What operating system are you using?
Mac
๐งข Your Company/Team
Snowflake
๐ท Tracking Issue
No response