When does itemToString receive `null` as its argument?
In the downshift typings, itemToString's type signature is (item: Item | null) => string. https://github.com/downshift-js/downshift/blob/a6bcd2247f4757b9a6c4077fdd9cf07554049054/typings/index.d.ts#L37 When would it be passed null and why? Thanks!
How to clear items within useComboBox
I'm loading my 'items' in asynchronously and have put them into state. When I clear out my state to reset the items from within onInputValueChanged, the items within useComboBox don't reset and I get stale results. I noticed that there's no clearItems method available within…
Pragmatically setting the selected item
I'm using useComboBox for a handful of components with type-ahead behaviour. In some cases, the selection of one also changes the value in another and to make this work I'm passing a selectedItem prop to the components as my state values change. This calls an infinite loop! I'm…
Using downshift for a dropdown menu with links
I have currently have a custom dropdown component that only allows one item option to be selected but the requirements have changed to allow multiple selections and single selection. Is there a prop to pass Downshift to define if the custom dropdown will allow multiple…