You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ensureIsValidRoute function flattens dynamic routes objects so that only the route prop is used as the url. It would be useful to pass the entire object instead like with static routes, so some additional props could be used in the filter function. The route prop would have to be assigned to a url prop, something like this :
function ensureIsValidRoute(route) {
route = typeof route === 'object' ? route : { url: route }
if(route.route)
route.url = route.route
// force as string
route.url = String(route.url)
return route
}
The text was updated successfully, but these errors were encountered:
jydmnd
changed the title
Not able to pass params for dynamic routes
Not able to use object props for dynamic routes
Oct 7, 2022
The
ensureIsValidRoute
function flattens dynamic routes objects so that only the route prop is used as the url. It would be useful to pass the entire object instead like with static routes, so some additional props could be used in the filter function. The route prop would have to be assigned to a url prop, something like this :The text was updated successfully, but these errors were encountered: