How to handle multiple path params #2143
Replies: 3 comments 3 replies
-
it totally depends on your requirements... theoretically you could have a single route that has all of the path params |
Beta Was this translation helpful? Give feedback.
-
There really needs to be better documentation around this. Maybe adding some more "real world" examples here. @kyusungpark Curious what approach you ended up taking? |
Beta Was this translation helpful? Give feedback.
-
@schiller-manuel any additional guidance here? I've now spent a couple of hours looking for documentation, standards around this and it's very sparse. Overall, the documentation around nested routes feels very lacking, especially so when you add in multiple nested parameters. A good example is from
These 3 routes don't share any components and just need to render the specified route. Instead from what I can tell, you'd only be able to do this by rendering This feels like such a fundamental use case for a router that I feel like I must just be missing something... |
Beta Was this translation helpful? Give feedback.
-
Hi, I am looking into Tanstack Router and was wondering what's the best way to handle multiple path params for file based routing.
For example, if I want a path like
/schools/:schoolId/courses/:courseId/:test/:testId
how should I be structuring my folders/file names?Beta Was this translation helpful? Give feedback.
All reactions