T
TanStack7mo ago
helpful-purple

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

Did you find this page helpful?