Class RouteBlockerManager
- Namespace
- Velvet
- Assembly
- Velvet.Docs.dll
Coordinates the navigation Blockers registered with a Router.
public sealed class RouteBlockerManager
- Inheritance
-
objectRouteBlockerManager
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
stateto Idle, whatever it was holding.