-
Hi, I am checking this document about the Why the When checking the routes, it looks quite the same to me
Could anyone kindly explain it to me? Thank you so much! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The The reason it currently works is due to a bug where it treats interior
That is why Since this bug is probably inadvertently depended on, once it's fixed I will add a config option to opt-in to it. |
Beta Was this translation helpful? Give feedback.
The
project
folder should have a+
, since it's nested, not colocated.The reason it currently works is due to a bug where it treats interior
/
as though it were.
. Only the final naked folder is treated as a colocated folder.remix-flat-routes
converts the route into thev2
flat routes convention before processing. This is to ensure that it will always be backwards compatible with the official Remix convention.That is why
routes/project/parent.child.grandchild/styles.css
is treated asroutes/project.parent.child.grandchild/styles.css
and is considered a colocated file.Since this bug is probably inadvertently depended on, once it's fixed I will add a config option to opt-in to it.