Separate layouts for dashboard and public routes
So im migrating from nextjs and in nextjs i can define layouts separately
(routes) -> For public routes (This group has a layout which extends the root layout)
dashboard -> For dashboardroutes (This route has a layout which extends the root layout)
layout.tsx -> This is the root layout
But with tanstack router file base router how can i do the same??

1 Reply
rare-sapphire•4mo ago
https://tanstack.com/router/latest/docs/framework/react/routing/routing-concepts#layout-routes
https://tanstack.com/router/latest/docs/framework/react/routing/routing-concepts#pathless-layout-routes
depends if you want the layouts to be in the url or not. There are regular layout routes and path less layouts