Reintroduce flat routing#1482
Conversation
🦋 Changeset detectedLatest commit: 59094aa The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
One thing I wasn't sure about here was what this did for people who wanted |
|
Looks like Remix use |
2d91925 to
44eee2b
Compare
|
Just going to close this for now until we revisit |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Changes to nested route escaping in RC0 broke what was essentially flat routing, where files/folders named along the lines of
a.b.cwould have their path becomea/b/c. This is useful for reducing folder nested. Whether it was an intentional behaviour previously I'm not sure, but I'd like it to be there.What is the new behavior?
Adds back the
. -> /regex that was removed in RC0, bringing back flat route support.Other information
Having flat routing alongside nested routing does add the potential for multiple definitions of the same route, but IMO the convenience outweighs that risk