NavigationStates
react-router

NavigationStates type

type NavigationStates = { 
  Idle: { 
  formAction: undefined,
  formData: undefined,
  formEncType: undefined,
  formMethod: undefined,
  json: undefined,
  location: undefined,
  state: "idle",
  text: undefined,
},
  Loading: { 
  formAction: Submission["formAction"] | undefined,
  formData: Submission["formData"] | undefined,
  formEncType: Submission["formEncType"] | undefined,
  formMethod: Submission["formMethod"] | undefined,
  json: Submission["json"] | undefined,
  location: Location,
  state: "loading",
  text: Submission["text"] | undefined,
},
  Submitting: { 
  formAction: Submission["formAction"],
  formData: Submission["formData"],
  formEncType: Submission["formEncType"],
  formMethod: Submission["formMethod"],
  json: Submission["json"],
  location: Location,
  state: "submitting",
  text: Submission["text"],
},
}

Potential states for state.navigation

Docs and examples CC 4.0