Skip to content

Commit 82565ec

Browse files
authored
Add back missing period
1 parent 08c7264 commit 82565ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/docs/useform/reset.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Reset the entire form state, fields reference, and subscriptions. There are opti
2929

3030
<Admonition type="important" title="Rules">
3131

32-
- For controlled components you will need to pass `defaultValues` to `useForm` in order to `reset` the `Controller` components' value
32+
- For controlled components you will need to pass `defaultValues` to `useForm` in order to `reset` the `Controller` components' value.
3333
- When `defaultValues` is not supplied to `reset` API, then HTML native [reset](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/reset) API will be invoked to restore the form.
3434
- Avoid calling `reset` before `useForm`'s `useEffect` is invoked, this is because `useForm`'s subscription needs to be ready before `reset` can send a signal to flush form state update.
3535
- It's recommended to `reset` inside `useEffect` after submission.

0 commit comments

Comments
 (0)