React Router API Reference
    Preparing search index...

    Interface PathMatch<ParamKey>

    Contains info about how a PathPattern matched on a URL pathname.

    interface PathMatch<ParamKey extends string = string> {
        params: Params<ParamKey>;
        pathname: string;
        pathnameBase: string;
        pattern: PathPattern;
    }

    Type Parameters

    • ParamKey extends string = string
    Index

    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.

    pattern: PathPattern

    The pattern that was used to match.