Table of Contents

Class RouteBlockerState

Namespace
Velvet
Assembly
Velvet.Docs.dll

Observable state for an individual navigation Blocker: React Router's Blocker.

public sealed class RouteBlockerState
Inheritance
object
RouteBlockerState

Properties

Location

Where the navigation this Blocker holds, or released, is heading; null when Idle.

Proceed

Releases the block and sends the navigation it holds through again, without consulting this Blocker. Null unless Status is Blocked. The delegate is bound to the navigation it was handed out for: invoked once the Blocker has left that block it throws System.InvalidOperationException, and invoked while the Blocker holds a newer navigation it releases the one it was handed out for.

Reset

Releases the block and abandons the navigation, leaving the router where it is. Null unless Status is Blocked; a delegate kept from then returns the Blocker to Idle whatever its status is by the time it runs.

Status