Replies: 4 comments 17 replies
-
Nesting folders in routes was possible in v1, but since v2 the convention is flat routes so it's not possible. But you can do it with remix.config.js routes function, and there are popular packages like remix-flat-routes which supports |
Beta Was this translation helpful? Give feedback.
-
@sergiodxa Thank you. How about nesting layout between folders? For example, I have this structure without folders
Now we have Can I have such a relation between folders? Because the dashboard may have multiple files (small components) and also tickets and favorites may have their own files, I want to organize them. Any idea? |
Beta Was this translation helpful? Give feedback.
-
Is Remix only intended for very small sites or personal blogs? I love Remix in general, but honestly the change to use flat routes has made Remix much more difficult to use. I'm surprised more people aren't speaking up about this. The change to flat routes has made Remix cumbersome to use for anything with more than a few routes, as there is no longer a direct correlation between the routes and what's generated. Everything is very abstract. I'm imagining what personal computers would be like today had one of the early dev leads removed folders. |
Beta Was this translation helpful? Give feedback.
-
At one point on Twitter, @ryanflorence mentioned "All file based routing drives me nuts, wish we never added it at all. I use the manual config version." and that "we've got way better stuff coming too. File routes are bogus." Are there any official RFCs or anything about what this better routing is? |
Beta Was this translation helpful? Give feedback.
-
For large-scale applications, this is crucial. For example, I need such a thing:
routes
Any way to achieve this in routing? I could not find anything regarding this in the docs related to the routing
Btw, I tried this but it didn't work:
I need to achieve either
auth/login
orlogin
itself. Either of them is fine.Beta Was this translation helpful? Give feedback.
All reactions