Is virtualizer applied/used in combobox/select by default without manually wrapping it in the combobox #9558
-
|
Just to confirm if the combobox/select or any other components with many list options are wrapped or virtualized by default in these components or do we need to manually virtualize them by wrapping the content in the comboboxes manually or specifically @devongovett / @snowystinger any ideas on this |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
They are not virtualized by default, giving you the flexibility to use it only when you need to and otherwise avoiding the extra code/cost if you do not need it. You can find documentation for setting up virtualization here: https://react-aria.adobe.com/Virtualizer You can always check if a component is virtualized by watching the items in the dom, if there are less dom nodes representing items than there are total items in a collection, then it is virtualized. Usually they also have absolute positions and you can watch the nodes be reused as you scroll. |
Beta Was this translation helpful? Give feedback.
They are not virtualized by default, giving you the flexibility to use it only when you need to and otherwise avoiding the extra code/cost if you do not need it.
You can find documentation for setting up virtualization here: https://react-aria.adobe.com/Virtualizer
You can always check if a component is virtualized by watching the items in the dom, if there are less dom nodes representing items than there are total items in a collection, then it is virtualized. Usually they also have absolute positions and you can watch the nodes be reused as you scroll.