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

Taught in

References