What it does
useFormStatus reads the submission state of the parent form. Drop a child Client Component inside a <form> and it gets { pending, data, method, action }.
Where it must be called
Inside a child of the form. Calling it in the same component that renders the form returns nothing — the hook reads form context provided by the parent.
React 19 additions
| Field | Meaning |
|---|---|
pending | True while the action is running |
data | The FormData being submitted |
method | Always 'post' |
action | Reference to the action being called |