Table of Contents

Struct NavigationState

Namespace
Velvet
Assembly
Velvet.Docs.dll

The navigation in flight, as Navigation holds it and Hooks.UseNavigation returns it: React Router's navigation.

public readonly struct NavigationState

Properties

FormAction

The path the submission in flight was made to; null while none is.

FormData

What the submission in flight sent; null while none is.

FormMethod

The lower-case method of the submission in flight, while one is, as React Router 6.28 reports it without v7_normalizeFormMethod; null otherwise, as navigation.formMethod is undefined then.

Location

While State is not Idle, the location being navigated to; null while it is, as React Router's navigation.location is undefined then.

State