useFormStatus
A React DOM hook that tells a component inside a form whether that form is currently submitting.
In more detail
It must be called in a component rendered inside the form, such as a SubmitButton. The button can then disable itself without props being passed down.
Related terms
- useActionState — The React hook that wraps an Action and returns its latest result, a function to trigger it, and an isPending flag.
- isPending — A true or false value from hooks such as useActionState and useTransition that is true while an action is still running.
Taught in
- Action State: useActionState & Optimistic Form UI — Next.js 15 & Modern App Router Architecture