Skip to content

Commit bc1c93b

Browse files
authored
docs: fix typo, replace 'recommend' with 'recommended' in documentation, fixes #1032 (#1033)
1 parent 4d61efb commit bc1c93b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/components/ApiRefTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ register('test[0]firstName'); // ❌`}
732732
<li>
733733
<p>
734734
Changing the name on each render will result in new inputs being
735-
registered. It's recommend to keep static names for each
735+
registered. It's recommended to keep static names for each
736736
registered input.
737737
</p>
738738
</li>

src/components/UseFieldArrayContent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export default function UseFieldArrayContent({ api }: { api: any }) {
7474
</p>
7575
</li>
7676
<li>
77-
<p>It's recommend to not stack actions one after another.</p>
77+
<p>It's recommended to not stack actions one after another.</p>
7878
<CodeArea
7979
withOutCopy
8080
rawData={`

src/content/docs/useform/watch.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ This method will watch specified inputs and return their values. It is useful to
3232

3333
<Admonition type="important" title="Rules">
3434

35-
- When `defaultValue` is not defined, the first render of `watch` will return `undefined` because it is called before `register`. It's **recommend** to provide `defaultValues` at `useForm` to avoid this behaviour, but you can set the inline `defaultValue` as the second argument.
35+
- When `defaultValue` is not defined, the first render of `watch` will return `undefined` because it is called before `register`. It's **recommended** to provide `defaultValues` at `useForm` to avoid this behaviour, but you can set the inline `defaultValue` as the second argument.
3636
- When both `defaultValue` and `defaultValues` are supplied, `defaultValue` will be returned.
3737
- This API will trigger re-render at the root of your app or form, consider using a callback or the [useWatch](/docs/usewatch) api if you are experiencing performance issues.
3838
- `watch` result is optimised for render phase instead of `useEffect`'s deps, to detect value update you may want to use an external custom hook for value comparison.

0 commit comments

Comments
 (0)