Reference

useFormStatus

Returns the current form submission status for the nearest form action.

Signature

function useFormStatus(): FormStatus