-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(remix-dev/flat-routes): use
index
without leading underscore fo…
…r colocation (#5160)
- Loading branch information
Showing
3 changed files
with
44 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
"remix": patch | ||
"@remix-run/dev": patch | ||
--- | ||
|
||
use `index` without leading underscore for colocation | ||
|
||
when using flat routes with folder colocation, use `index` without leading underscore for route | ||
|
||
before: | ||
``` | ||
app_.projects.$id.roadmap/ | ||
_index.tsx | ||
chart.tsx | ||
update-timeline.server.tsx | ||
``` | ||
|
||
after: | ||
``` | ||
app_.projects.$id.roadmap/ | ||
index.tsx | ||
chart.tsx | ||
update-timeline.server.tsx | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters