isPending
A true or false value from hooks such as useActionState and useTransition that is true while an action is still running.
In more detail
Use it to disable the submit button and show progress, which prevents double submissions. Pair it with aria-busy so screen readers announce the waiting state.
Related terms
- useActionState — The React hook that wraps an Action and returns its latest result, a function to trigger it, and an isPending flag.
- ARIA — The W3C standard of HTML attributes, such as role and aria-expanded, that tell assistive technology what a custom widget is and what state it is in.
- Boolean — A value that can only be true or false.
Taught in
- Action State: useActionState & Optimistic Form UI — Next.js 15 & Modern App Router Architecture