Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/content/reference/react-dom/hooks/useFormStatus.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ A `status` object with the following properties:

## Usage {/*usage*/}

### Display a pending state during form submission {/*display-a-pending-state-during-form-submission*/}
### 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.
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.

Here, we use the `pending` property to indicate the form is submitting.
Expand Down
Loading