Class RouterContext
- Namespace
- Velvet
- Assembly
- Velvet.Docs.dll
Static contexts that propagate router information through the Velvet component tree.
Router writes to them as the Provider; child components read via UseContext.
public static class RouterContext
- Inheritance
-
objectRouterContext
Fields
- Depth
Nested-route depth. Used during Outlet rendering to pick the correct match.
- LoaderData
Loader data corresponding to the current location. Keyed by RouteId.
- Location
Current navigation location (path, parameters, match information).
- OutletContext
Context value supplied by an
Outletto its rendered child route, consumed byUseOutletContext.