Table of Contents

Class RouteBlockerManager

Namespace
Velvet
Assembly
Velvet.Docs.dll

Coordinates the navigation Blockers registered with a Router.

public sealed class RouteBlockerManager
Inheritance
object
RouteBlockerManager

Methods

Register(Func<BlockerFunctionArgs, bool>, RouteBlockerState)

Registers a Blocker. A router consults only the one registered last, as React Router's does. Disposing the registration removes the Blocker and returns state to Idle, whatever it was holding.