Skip to content

Commit d5ce267

Browse files
Add section on behaviour of values prop in combination with defaultValues prop (#1069)
* Add section on behaviour of values and defaultValues.mdx * Update useform.mdx * Update src/content/docs/useform.mdx --------- Co-authored-by: Beier (Bill) <bluebill1049@hotmail.com>
1 parent 9777f71 commit d5ce267

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/content/docs/useform.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,8 @@ useForm({
170170

171171
---
172172

173-
The `values` props will react to changes and update the form values, which is useful when your form needs to be updated by external state or server data.
173+
The `values` prop will react to changes and update the form values, which is useful when your form needs to be updated by external state or server data. The `values` prop will overwrite the `defaultValues` prop, unless `resetOptions: { keepDefaultValues: true }` is also set for `useForm`.
174+
174175

175176
```javascript copy
176177
// set default value sync

0 commit comments

Comments
 (0)