Table of Contents

Method UseNavigation

Namespace
Velvet
Assembly
Velvet.Docs.dll

UseNavigation()

Returns the current navigation state. The state is Loading while the active Router is matching or loading the next location, and Idle otherwise. The component re-renders as the router's status transitions.

public static NavigationState UseNavigation()

Returns

NavigationState

Remarks

A submitting state is intentionally not modelled because Velvet has no route action / form-submission model.