FormStatus
What a form's descendants read with useFormStatus.
What a form's descendants read with useFormStatus.
Import#
ts
import type { FormStatus } from "@shadow-js/dusk/client";
Signature#
ts
interface FormStatus {
/** True while the form's POST runs. */
readonly pending: boolean;
/** The method of the form. */
readonly method: "get" | "post";
/** The action the form submits to (the URL, or the endpoint of the function). */
readonly action: string;
}
Members#
| Name | Type | Description |
|---|---|---|
pending |
readonly pending: boolean |
True while the form's POST runs. |
method |
readonly method: "get" | "post" |
The method of the form. |
action |
readonly action: string |
The action the form submits to (the URL, or the endpoint of the function). |