React Hook Form
📋 Custom React hooks for form validation without the hassle
formState.errors object is sometimes empty although field is not valid
Hello. I have added react-hook-form into my react-native app. In my TextInput component, I'm using useController to access field and meta keys to wire up the onChange and onBlur events and to access the value key. So here is (roughly) my component (MyTextInput): The error prop…
Re-use a form in another form
Hey guys, i have an issue with my RHF project. I created a big form (with a submit button), in which i use another form i previously created (basically the component is a list with a "add' button, which raises a form with a submit button also). In my case, when i validate my…
Controller sending in default onBlur
Hi, Will Controller send the default onBlur method of react-hook-form to the component enclosed in "as"? In that case, how can we avoid it and send undefined instead? Because I don't want the onBlur function from react-hook-form to be triggered. I'm using V5.
Hi, Below is the scenario. If I have a text fields and dropdown in the field array and I want to know the all dropdown values upon any dropdown change in the array, what is the better approach? I see the docs say 'watch' is not recommended, is there any way I can get the values.