menu

React Hook Form

📋 Custom React hooks for form validation without the hassle

Channels
Team
Posts
Members
Info

Flat errors for tree form inputs

Hi, I have complex form structure where I have grouped input. Grouped by dot. For example I have an address section, which is grouped by 'address.` prefix. So that I can create a structure needed for back-end just with naming. But it doesn't work for errors. It's just a flat TS…

thumbsup
0
message-simple
5

HandleSubmit should respect existing errors

As a followup for https://github.com/react-hook-form/react-hook-form/issues/370 I think handleSubmit should respect existing errors. AFAIK, right now it runs all validations for fields and doesn't check if there is an error already. Wouldn't it be better to keep existing error…

thumbsup
0
message-simple
1

Integrating other validation libraries (e.g. Validate.js)

From what I understand, there are a few integration points to execute custom validation logic, but from looking at the code the concept of validation schema (currently Yup validation schema) is pretty deeply ingrained in the API/logic. Is there some way to replace Yup with…

thumbsup
0
message-simple
5

What UI libs you can suggest that have the best compatibility with hook-form?

thumbsup
0
message-simple
16

Aligning the return value of useForm with the official React hooks

Preface: I'm unaware if there's an internal restriction or requirement preventing this from being done, nor could I find any existing issues/threads around this topic (it's a hard one to search for) – so apologies if this has already been discussed elsewhere. The official React…

thumbsup
0
message-simple
10

RevalidateMode

Right now react hook form revalidate input with onChange, bascially as you type and input get re-valdiated. thinking of introduce RevalidateMode which allow to config to onSubmit or onBlur and default to onChange What do you guys think of such feature? FYI: @barry4ui @stramel…

thumbsup
0
message-simple
29

bi-directional data binding?

thumbsup
0
message-simple
42

watch seems to not work on formContext

Hi I tried to find out the reason why conditional component registration is not working. Check out this example with the use of FormContext, it seems that watch does not work on FormContext. I could not find this in the docs, is this a bug or a missing…

thumbsup
0
message-simple
5

Thanks very much 🙏🏻for the donation

Thanks very much @hcc for the donation. I never expected any donation for this library until I saw it today (I did set up all those donation pages, so it looks legit for the package). I am really grateful and the money will go towards the hosting and domain ❤️❤️❤️

thumbsup
2
message-simple
0