matchRoutes
matchRoutes<RouteObjectType>(routes: RouteObjectType[],locationArg: string | Partial<Location>,basename: string): AgnosticRouteMatch<string, RouteObjectType>[] | null
Matches the given routes to a location and returns the match data.
Properties
(Mandatory properties are in bold)Properties | Type | Description |
---|---|---|
locationArg | string | Partial<Location> | |
routes | RouteObjectType[] |
Additional properties for advanced use cases
Properties | Type | Description |
---|---|---|
basename | string |