Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

NavigationStates

Potential states for state.navigation

type NavigationStates = {
Idle: {
state: "idle";
location: undefined;
formMethod: undefined;
formAction: undefined;
formEncType: undefined;
formData: undefined;
}
;
Loading: {
state: "loading";
location: Location;
formMethod: FormMethod | undefined;
formAction: string | undefined;
formEncType: FormEncType | undefined;
formData: FormData | undefined;
}
;
Submitting: {
state: "submitting";
location: Location;
formMethod: FormMethod;
formAction: string;
formEncType: FormEncType;
formData: FormData;
}
;
}
;

§Type

§
{
Idle: {
state: "idle";
location: undefined;
formMethod: undefined;
formAction: undefined;
formEncType: undefined;
formData: undefined;
}
;
Loading: {
state: "loading";
location: Location;
formMethod: FormMethod | undefined;
formAction: string | undefined;
formEncType: FormEncType | undefined;
formData: FormData | undefined;
}
;
Submitting: {
state: "submitting";
location: Location;
formMethod: FormMethod;
formAction: string;
formEncType: FormEncType;
formData: FormData;
}
;
}
[src]