💬 Feedback - Autocomplete #2512
Labels
breaking change
Used to mark when a proposal includes breaking changes, therefore it needs a plan for release
component:autocomplete
stale
Used to mark when there was no activity for a set period of time
Forma 36 component feedback
There is currently no way to defer/debounce updates to
items
because their internal rendering is dependent oninputValue
.Essentially, I was trying to improve performance of an
Autocomplete
input that has several thousand items by addinguseDeferredValue
from React 18 to de-prioritise the dropdown updates over the input updating as a user is typing. However, after implementing this it was not giving the performance gains I was expecting. Doing some performance profiling, this seems to be becauseAutocompleteItems
is re-rendering every-timeinputValue
changes to include the highlighting for each item, meaning whatever I do the dropdown will always be re-rendered for everyinputValue
change.The text was updated successfully, but these errors were encountered: