Tanstack router Pathless Routes validation with parameters
Say I want to create a pathless route for something for a specifc layout / page to do datafetching based of a url param. How would I do this and keep type safe. Is there a way to sepcify that this pathless route is only run on a specific route?
Say you have /:id/dashboard/ for example. Is their a way that I can say I want this pathless route to only run on /:id/$ for example so I could access the :id in the pathless route safely?
1 Reply
plain-purple•8mo ago
can you please give a more detailed example?