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

Did you find this page helpful?