We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 214652a commit fe9a923Copy full SHA for fe9a923
src/content/docs/useform.mdx
@@ -295,8 +295,8 @@ const {
295
register,
296
formState: { errors },
297
} = useForm({
298
- validate: async (formValue) => {
299
- if (formValue.test1.length > formValue.test.length) {
+ validate: async ({ formValues }: FormValidateResult) => {
+ if (formValues.test1.length > formValues.test.length) {
300
return {
301
type: "formError",
302
message: "something is wrong here",
0 commit comments