TanStackT
TanStack2y ago
2 replies
skinny-azure

Deep routes with route matching

Hi,

Anyone here that knows of a way to create deeply nested routes where it is possible to use useMatches (or any other function) for creating breadcrumbs?

__root.tsx
index.tsx
posts.tsx (set breadcrumb title in context)
posts_.$postId.tsx (set breadcrumb title in context)


In the posts_.$postId.tsx I want to render a breadcrumb where I have access to the title set in posts.tsx.

Am I approaching this the wrong way maybe? I need to do deep nesting as I do not want an <Outlet /> in my posts.tsx
Was this page helpful?