Skip to content

Commit 374bc88

Browse files
authored
Improve useFormState docs (#863)
useFormState returns a FormState and not a FormSpyRenderProps.
1 parent b487199 commit 374bc88

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/api/useFormState.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
import { useFormState } from 'react-final-form'
77
```
88

9-
The `useFormState()` hook takes one optional parameter, which matches the exact shape of [`FormSpyProps`](../types/FormSpyProps) (except without the render props). It returns a [`FormSpyRenderProps`](../types/FormSpyRenderProps).
9+
The `useFormState()` hook takes one optional parameter, which matches the exact shape of [`FormSpyProps`](../types/FormSpyProps) (except without the render props). It returns a [`FormState`](/docs/final-form/types/FormState).
1010

1111
`useFormState()` is used internally inside [`<FormSpy/>`](FormSpy).

0 commit comments

Comments
 (0)