Support for nested dynamic routes?
Does this package support dynamically nested routes? Let's say I have an app which has 2 possible base URLs:
-
/
- /base
I want to be able to serve my app either from root or from /base. Can this work with tanstack router? I know dynamic routes are a thing, but if I were to use $base it would not catch the root route1 Reply
optimistic-goldOP•2y ago
Never mind, figured it out: setting the basepath on the router object does the trick
https://tanstack.com/router/v1/docs/framework/react/api/router/RouterOptionsType#basepath-property
RouterOptions | TanStack Router React Docs
The RouterOptions type contains all of the options that can be used to configure a router instance.
RouterOptions properties