dual-salmonD
Refine3y ago
7 replies
dual-salmon

useAutocomplete default values

I have a controller that renders an autocomplete component. I am using the useAutocomplete hook to get the options, but I need a default value or else I will get the "cannot go from uncontrolled to controlled" error, but I cant set a default value because the useAutocomplete hoook is async. How can I fix this?
Was this page helpful?