TanStackT
TanStack3mo ago
11 replies
popular-magenta

route api to support more than one outlet

Hello,

i've a broad question. i have an app layout which i want to use at the top level of my app (let's assume /routes/app) and have subroutes which i allow with one <Outlet /> component. that being said, my layout's sidebar needs to change depending on the route (which is pretty common) and i'd like to know if, since the router has a component: <RouteComponent /> api, it was possible to have more than one outlet so that my routes could also return their own sidebar structures.

thank you
Was this page helpful?