Skip to content

Commit f6a767b

Browse files
committed
Shorten pending definition and link onSubmit guidance
1 parent 6907d6c commit f6a767b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/content/reference/react-dom/hooks/useFormStatus.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ In the above example, `Submit` uses this information to disable `<button>` press
5454

5555
A `status` object with the following properties:
5656

57-
* `pending`: A boolean. If `true`, the parent `<form>` is pending submission, either through its `action` prop or through an `onSubmit` handler that calls `event.preventDefault()` and starts a Transition in the same event. Otherwise, `false`.
57+
* `pending`: A boolean. `true` while the parent `<form>` is submitting an Action or [running a Transition from `onSubmit`](#display-a-pending-state-with-an-onsubmit-handler). Otherwise, `false`.
5858

5959
* `data`: An object implementing the [`FormData interface`](https://developer.mozilla.org/en-US/docs/Web/API/FormData) that contains the data the parent `<form>` is submitting. If there is no active submission or no parent `<form>`, it will be `null`.
6060

0 commit comments

Comments
 (0)