Remix Validated Form

(formId?: string) => boolean

A hook that returns whether or not the current form is being submitted.

The formId parameter allows you to use the hook outside a form.