Interface RouteMatch<ParamKey, RouteObjectType>

interface RouteMatch<ParamKey, RouteObjectType> {
    params: Params<ParamKey>;
    pathname: string;
    pathnameBase: string;
    route: RouteObjectType;
}

Type Parameters

Hierarchy (view full)

Properties

params: Params<ParamKey>

The names and values of dynamic parameters in the URL.

pathname: string

The portion of the URL pathname that was matched.

pathnameBase: string

The portion of the URL pathname that was matched before child routes.

The route object that was used to match.