virtual file route
How to get started with virtual file routes?
is that possible to get route for this file(please avoid code-based) : src/modules/user/index.tsx
2 Replies
afraid-scarlet•8mo ago
Provided you'd setup the router plugin, you'll just need to configured your "routes" directory (by default it's set to
src/routes
) and then in a routes.ts
file at the root of your app, point it the file.
https://tanstack.com/router/latest/docs/framework/react/guide/virtual-file-routesVirtual File Routes | TanStack Router React Docs
We'd like to thank the Remix team for . We've taken inspiration from their work and adapted it to work with TanStack Router's existing file-based route-tree generation. Virtual file routes are a power...
genetic-orange•2mo ago
That link has been updated to https://tanstack.com/router/latest/docs/framework/react/routing/virtual-file-routes
Note that article doesn't have any examples nor instructions for accessing files outside of the routes directory. Indeed, it currently seems that feature might not work. I'm working with @Manuel Schiller in this thread toward ascertaining that.
Virtual File Routes | TanStack Router React Docs
We'd like to thank the Remix team for . We've taken inspiration from their work and adapted it to work with TanStack Router's existing file-based route-tree generation. Virtual file routes are a power...