Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/content/docs/useform/reset.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ Reset the entire form state, fields reference, and subscriptions. There are opti

reset(undefined, { keepDirtyValues: true }) // reset other form state but keep defaultValues and form values
```
- Calling `reset` with `values` updates the form's `defaultValues` unless `options.keepDefaultValues` is set. If `reset` is later called without `values` or with `{}`, the form resets to the last `values` provided instead of the initial `defaultValues`

</Admonition>

Expand Down