Skip to content

Commit a396710

Browse files
authored
fix: correct useForm defaultValues type in documentation (react-hook-form#1006)
1 parent a884730 commit a396710

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/docs/useform.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ This option allows you to configure the validation strategy before a user submit
123123

124124
This option allows you to configure validation strategy when inputs with errors get re-validated **after** a user submits the form (`onSubmit` event and [`handleSubmit`](/docs/useform/handlesubmit) function executed). By default, re-validation occurs during the input change event.
125125

126-
#### defaultValues: <TypeText>`FieldValues | Promise<FieldValues>`</TypeText> {#defaultValues}
126+
#### defaultValues: <TypeText>`FieldValues | () => Promise<FieldValues>`</TypeText> {#defaultValues}
127127

128128
---
129129

0 commit comments

Comments
 (0)