You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8814637
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: src/content/reference/react-dom/hooks/useFormStatus.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -72,7 +72,7 @@ A `status` object with the following properties:
72
72
73
73
## Usage {/*usage*/}
74
74
75
-
### Display a pending state during form submission {/*display-a-pending-state-during-form-submission*/}
75
+
### Display a pending state during form submission {/*display-a-pending-state-during-form-submission*/}`useFormStatus` will also report `pending: true` if a form submission handler calls `event.preventDefault()` and starts a Transition using `startTransition`. This is useful when handling custom form submissions without the `action` prop.
76
76
To display a pending state while a form is submitting, you can call the `useFormStatus` Hook in a component rendered in a `<form>` and read the `pending` property returned.
77
77
78
78
Here, we use the `pending` property to indicate the form is submitting.
0 commit comments