List-Detail Layout with Path Params
I am struggling a bit with this conceptually. I think once I see the pattern, its going to help me out a lot. I am trying to make this a list detail view using a sub_layout (_layout). So the root layout is just an outlet that I can feed other page layouts into. Anyway, I want a sidebar nav that lists the pokemons and then the details page renders in the main element adjacent to the sidebar. How do I structure this accordingly?
https://stackblitz.com/edit/tanstack-router-dyxcm6?file=src%2Froutes%2F__root.tsx
Jeff Kinley
StackBlitz
Router Basic File Based Example (forked) - StackBlitz
Run official live example code for Router Basic File Based, created by Tanstack on StackBlitz
3 Replies
sensitive-blueOP•14mo ago
Anybody have any ideas here? I am happy to elaborate.
sensitive-blue•14mo ago
I think I understood what you were looking for.
Essetentially, where you can view the pokemon content whilst still retaining the sidebar.
sensitive-blue•14mo ago
Sean Cassiere
StackBlitz
pokemon side-by-side - StackBlitz
Run official live example code for Router Basic File Based, created by Tanstack on StackBlitz