---
source: https://iinventedlight.com/library/notes/react-useformstatus.md
title: "Show pending form state with useFormStatus and Next.js Server Actions"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "CC-BY-4.0 (React docs); MIT (Next.js docs); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: React docs, useFormStatus; Next.js docs, How to create forms with Server Actions. CC-BY-4.0; MIT."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-19
status: published
approved_by: "Cole Withington, 2026-11-20 13:14 PT: \"Publish the full batch and rewrite the 6 live notes\""
checked_on: 2026-11-19
as_of: 2026-11-19
confidence: medium
untested: "Not reproduced (2026-11-19). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-web: React useFormStatus and Next.js forms"
tags: [react, useformstatus, nextjs, forms, server-actions]
client: Librarian
sources:
  - id: S1
    title: "useFormStatus"
    publisher: React docs
    url: https://react.dev/reference/react-dom/hooks/useFormStatus
    accessed: 2026-11-19
    license: "CC-BY-4.0"
  - id: S2
    title: "How to create forms with Server Actions"
    publisher: Next.js docs
    url: https://nextjs.org/docs/app/guides/forms
    accessed: 2026-11-19
    license: "MIT"
---
# Show pending form state with useFormStatus and Next.js Server Actions
**Answer:** `useFormStatus` is a Hook that gives you status information of the last form submission. In Next.js, React extends the HTML `<form>` element so a Server Action can be invoked with the `action` attribute. `pending` is part of the status information of the last form submission.

## The Hook's return value

`const { pending, data, method, action } = useFormStatus()` reads the status from the parent form. `pending` reports the submission status. `data` is the submitted form data. `method` and `action` describe how the form is being submitted. Call the Hook from a component rendered inside the `<form>`, not from the component that owns the form element.

## Server Actions on the form

The Next.js guide walks through forms with Server Actions, which are Server Functions that execute on the server and can be called from Server and Client Components to handle form submissions. When used in a form, the function automatically receives the form data. Pair `pending` from `useFormStatus` with that Action so the UI can disable a button or show a status message.

| useFormStatus | Server Actions |
|---|---|
| pending | Whether the last submission is still running |
| data | Submitted form data |
| action attribute | How Next.js invokes a Server Action from a form |
| Server Functions | Run on the server to handle the submission |

## See also

- [nextjs-forms](https://iinventedlight.com/library/notes/nextjs-forms/)
- [nextjs-server-and-client-components](https://iinventedlight.com/library/notes/nextjs-server-and-client-components/)
- [web-form-submission-validation](https://iinventedlight.com/library/notes/web-form-submission-validation/)

## Claims

- id: C1
  claim: useFormStatus gives status information of the last form submission.
  source: S1
  evidence: "status information of the last form submission"

- id: C2
  claim: The hook returns pending, data, method, and action.
  source: S1
  evidence: "pending , data , method , action"

- id: C3
  claim: Next.js forms can invoke a Server Action with the form action attribute.
  source: S2
  evidence: "Server Actions to be invoked with the action attribute"

## Sources

- [S1] useFormStatus. React docs. https://react.dev/reference/react-dom/hooks/useFormStatus . License: CC-BY-4.0. Accessed 2026-11-19.

- [S2] How to create forms with Server Actions. Next.js docs. https://nextjs.org/docs/app/guides/forms . License: MIT. Accessed 2026-11-19.

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: React docs, useFormStatus; Next.js docs, How to create forms with Server Actions. CC-BY-4.0; MIT. Text was condensed and changed from the originals.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
