Lookup dynamic route's metadata with route name?
Is there any way to take a dynamic route and lookup/retrieve associated metadata from the router?
3 Replies
harsh-harlequin•10mo ago
can you give some more details ?
what do you want to do?
helpful-purpleOP•10mo ago
I want to retrieve staticData for a route that might not be in useMatches i.e. an index route
harsh-harlequin•10mo ago
then have a look at router.routesByPath
or router.routesById