matchRoutes
external fun <RouteObjectType : AgnosticRouteObject> matchRoutes(routes: ReadonlyArray<RouteObjectType>, locationArg: Location<*>, basename: String = definedExternally): ReadonlyArray<AgnosticRouteMatch<RouteObjectType>>?(source)
external fun <RouteObjectType : AgnosticRouteObject> matchRoutes(routes: ReadonlyArray<RouteObjectType>, locationArg: String, basename: String = definedExternally): ReadonlyArray<AgnosticRouteMatch<RouteObjectType>>?(source)
Matches the given routes to a location and returns the match data.
See also
https
://reactrouter.com/v6/utils/match-routes