TanStackT
TanStack3y ago
9 replies
then-purple

Layout for Route

I there I'm new to tanstack router for react and I have the following set up:
I have the following stricture:
/profile
/$organisation
/$organisation/$project
/$organisation/$project/list
/$organisation/$project/edit

I have the "main layout" that I use for all routes so I have a RootRoute with my main layout and the <Outlet /> where the rout specific stuff is rendered.
Everything under /$organisation/$project now has a shared layout and navigation inside the <Outlet /> "slot". What would be the best way to share the navigation and layout for /$organisation/$project, /$organisation/$project/list and /$organisation/$project/edit?
Was this page helpful?