Nested layouts work in flat but not directory based syntax
so i have routes like this that work fine:
but if I try and do it in a directory based style it breaks -- specifically the outlet on the tabs doesn't render the child routes
5 Replies
foreign-sapphireOP•9mo ago
adverse-sapphire•9mo ago
your route component needs to render an <Outlet/>
foreign-sapphireOP•9mo ago
<AnimatedTabLinks tabs={options} />
has an Outlet
note that this setup works totally fine with the existing setup when using flat structure, but it doesn't when using directory basedadverse-sapphire•9mo ago
please provide a complete example by forking one of the existing stackblitz examples
foreign-sapphireOP•9mo ago
Paul DeVito
StackBlitz
Router Basic File Based Example (forked) - StackBlitz
Run official live example code for Router Basic File Based, created by Tanstack on StackBlitz