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
rival-black•7mo ago
can you give some more details ?
what do you want to do?
helpful-purpleOP•7mo ago
I want to retrieve staticData for a route that might not be in useMatches i.e. an index route
rival-black•7mo ago
then have a look at router.routesByPath
or router.routesById