From 88146370a18926531972f2308c70de198d93da65 Mon Sep 17 00:00:00 2001 From: Adt2345-alt Date: Sun, 25 Oct 2026 20:57:04 +0530 Subject: [PATCH] docs: document useFormStatus with preventDefault and startTransition (#8682) --- src/content/reference/react-dom/hooks/useFormStatus.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/reference/react-dom/hooks/useFormStatus.md b/src/content/reference/react-dom/hooks/useFormStatus.md index 7517d8ae22f..63e1a7ead79 100644 --- a/src/content/reference/react-dom/hooks/useFormStatus.md +++ b/src/content/reference/react-dom/hooks/useFormStatus.md @@ -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 `
` and read the `pending` property returned. Here, we use the `pending` property to indicate the form is submitting.