menu

React Hook Form

📋 Custom React hooks for form validation without the hassle

Channels
Team
Posts
Chat
Members
Info
down-caret

Validation Schema and the order of the errors

With an empty firstName and validation schema like this: The error for the field will be the min error. But, I would expect it to show the required error. Maybe I am just too used to Formik, but it seems to make sense to return the first error. Either that, or maybe add a way to…

thumbsup
1
message-simple
23

Upgrading to 3.22.0 is breaking my tests, but I am not sure why.

When upgrading from 3.21.20 to 3.22.0, all my Jest tests that involve forms will fail with the same error: I don't get any errors when running the app. It's just in the Jest tests. It's possible I am doing something wrong and I am investigating, but the error seems pretty vague.…

thumbsup
0
message-simple
8

useForm import error

I want to use react-hook-form in my react class component, when i am trying to I am getting regiseter property not defined .... errors getting.

thumbsup
0
message-simple
2

Validation of create password fields

Consider we have two fields, password and passwordRepeat, password should validate as normal so thats all good. However the passwordRepeat should only apply its validation, eg. to check that it matches the password field, when password is valid. So far I've only seen validation…

thumbsup
1
message-simple
11

Sorry we break your app

Looks like v3.22.0 having build issue, which result in default export not found. This has been patched. again I apologize for not testing properly and release the changes. A patch has been released too 3.22.1

thumbsup
2
message-simple
0

`Register({ as: 'number' })` `Register({ as: 'Date' })`

What do you guys think about this API update? basically doing valueAsNumber and valueAsDate behind. pretty much what @stramel suggested. @barry4ui @stramel

thumbsup
1
message-simple
21

Issue #208

I just added some screenshots to the issue @Bill, I will test the beta version in a minute.

thumbsup
1
message-simple
20

[FEEDBACK] The documentations can(Should) be improved

hey i found this package and its awesome. i was just wanted to implement custom validation .i could not find it in the beginning so i would suggest to make the docs more user friendly

thumbsup
1
message-simple
7

Reload form defaultValues

Hi! Firstly thanks for awesome lib. I create component with form and need to update form values when data in props update component. Default value don't reload after rerender component and setValue not working for me. How i can reload form data after every update component?

thumbsup
1
message-simple
7

Welcome to React Hook Form Spectrum ❤️

Feel free to ask a question or discuss issues here.

thumbsup
1
message-simple
0