Skip to content

Commit c1d7ad3

Browse files
committed
update format
1 parent 2332075 commit c1d7ad3

File tree

4 files changed

+1
-3
lines changed

4 files changed

+1
-3
lines changed

next-env.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3+
/// <reference path="./.next/types/routes.d.ts" />
34

45
// NOTE: This file should not be edited
56
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.

src/content/docs/useform.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,6 @@ By default, an input value will be retained when input is removed. However, you
287287
- By default, `shouldUnregister: false` means unmounted fields are **not validated** by built-in validation.
288288
- By setting `shouldUnregister` to true at `useForm` level, `defaultValues` will **not** be merged against submission result.
289289
- Setting `shouldUnregister: true` makes your form behave more closely to native forms.
290-
291290
- Form values are stored within the inputs themselves.
292291
- Unmounting an input removes its value.
293292
- Hidden inputs should use the `hidden` attribute for storing hidden data.

src/content/docs/useform/getfieldstate.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ This method is introduced in react-hook-form ([v7.25.0](https://github.com/react
3737
getFieldState("non-existent-name") // ❌ will return state as false and error as undefined
3838
```
3939
- `getFieldState` works by subscribing to the form state update, and you can subscribe to the formState in the following ways:
40-
4140
- You can subscribe at the `useForm`, `useFormContext` or `useFormState`. This is will establish the form state subscription and `getFieldState` second argument will no longer be required.
4241

4342
```javascript

src/content/docs/useform/setvalue.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ This function allows you to dynamically set the value of a <strong>registered</s
4848
```
4949

5050
- Only the following conditions will trigger a re-render:
51-
5251
- When an error is triggered or corrected by a value update.
5352
- When `setValue` cause state update, such as dirty and touched.
5453

0 commit comments

Comments
 (0)