Table of Contents

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
object
RouterContext

Fields

Depth

Nested-route depth. Used during Outlet rendering to pick the correct match.

Errors

Loader errors for the current location, keyed by RouteId.

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 Outlet to its rendered child route, consumed by UseOutletContext.