I think the usage of as in Controller is deprecated.
https://react-hook-form.com/api#Controller suggests that For TypeScript user, if you are using custom component with required fields: onChange, onBlur, value, It will complain about missing declared field. Please use render instead of as.
Please change this to render instead of as, which is likely to take away this warning.
Also getting:
Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?
Check the render method of Controller.
in AppAutocomplete (at FormBuilder.js:46)
I think the usage of as in Controller is deprecated. https://react-hook-form.com/api#Controller suggests that For TypeScript user, if you are using custom component with required fields: onChange, onBlur, value, It will complain about missing declared field. Please use render instead of as.
Please change this to render instead of as, which is likely to take away this warning.
Also getting: Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?
Check the render method of
Controller
. in AppAutocomplete (at FormBuilder.js:46)