Skip to content

Commit 3715fd0

Browse files
Update seterror.mdx (#1080)
fix dependency array in example
1 parent 94c6f31 commit 3715fd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/docs/useform/seterror.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ const App = () => {
271271
minLength: "This is minLength",
272272
},
273273
})
274-
}, [setValue])
274+
}, [setError])
275275

276276
return (
277277
<form onSubmit={handleSubmit(onSubmit)}>

0 commit comments

Comments
 (0)