Replies: 1 comment
-
|
If there is an overwhelming amount of support to add another official file-based routing option, we may consider it, however I think it's pretty unlikely. I think the decision doc for
Introducing another option in React Router v8 means:
All in all, The fact that |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey everyone 👋
Now that we're discussing React Router v8 planning, I wanted to ask if there’s interest from the maintainers (and the broader community) in potentially upstreaming react-router-auto-routes as an optional file-based routing solution for v8.
It’s already been merged into Epic Stack (PR #1051 and #1053) (which is kind of the flagship RR starter), and it’s getting good feedback from teams who previously used
remix-flat-routes. It is a superset of that — keeping the same mental model and compile-time route generation — while adding frictionless colocation with cleaner conventions.What it does
react-router-auto-routesscans yourapp/routes/directory with zero config:It’s ESM-only, no extra runtime, and works great with RR v7 today.
Key features
It supports every conventions we're used to (
fs-routes,remix-flat-routes), while keeping the API surface small. I'm in the Less is More camp.+(e.g.+helper.tswon’t become a route)($lang)→:lang?$.tsxremix-flat-routesWhy bring this up now
The v8 planning thread #14468 and the open governance post encourage small, focused proposals that reduce friction for users.
A big portion of the ecosystem already uses file-based routing. The current
@react-router/fs-routesworks, but many people find it limiting — hence the popularity ofremix-flat-routes. My goal was to bridge those worlds with something simple, modern, and extensible.My ask
Would the maintainers be open to:
react-router-auto-routesas the base for@react-router/fs-routesv8, or@react-router/auto-routes?I’m happy to transfer the repo, maintain it under RR’s governance, and adapt to any constraints or naming conventions. I'm also open to adding migration from config-based
routes.ts.Would love to hear what folks think — especially the core team’s view on whether this direction fits into the v8 roadmap.
Thanks for reading 🙏
References
Beta Was this translation helpful? Give feedback.
All reactions