Repository navigation
[combobox][autocomplete] Add useFilteredItems hook, allowing for simpler implementation of virtualized comboboxes - #3732
Conversation
commit: |
Bundle size report
Check out the code infra dashboard for more information about this PR. |
✅ Deploy Preview for base-ui ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Greptile SummaryThis PR introduces a new Key changes:
Impact: Confidence Score: 5/5
Important Files Changed
|
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> Signed-off-by: Guilherme Sehn <[email protected]>
Combobox.useFilteredItems hook, allowing for simpler implementation of virtualized comboboxesuseFilteredItems hook, allowing for simpler implementation of virtualized comboboxes
| /** | ||
| * Return filtered items from the combobox. | ||
| */ |
There was a problem hiding this comment.
This seems fine to me - unless the list is really huge, I think React.useDeferredValue() can be skipped.
Can you update the Autocomplete demos/API as well?
useFilteredItems hook, allowing for simpler implementation of virtualized comboboxesuseFilteredItems hook, allowing for simpler implementation of virtualized comboboxes
Greptile found no issues!From now on, if a review finishes and we haven't found any issues, we will not post anything, but you can confirm that we reviewed your changes in the status check section. This feature can be toggled off in your Code Review Settings by deselecting "Create a status check for each PR". |
Signed-off-by: atomiks <[email protected]>
Signed-off-by: atomiks <[email protected]>
Signed-off-by: atomiks <[email protected]>
Signed-off-by: atomiks <[email protected]>
This PR adds a
Combobox.useFilteredItemsand aAutocomplete.useFilteredItemshook, allowing for simpler implementation of virtualized comboboxes and autocompletes. Solves #3669.