-
Hi @kiliman thanks for the great work! I want to use the new hybrid routes and I am quite confues by the readme, I dont understand how I can use that, can you perhaps clarify? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
ok I got it, just use the convention straightaway. I guess what made it confusing is the folder names are different, so I thought I had to name them that way. another weird thing is the route works with both _route.tsx and route.tsx, index.tsx, with filenames straightaway. I really love how we can choose, but definitely something to improve for the readme. thanks so much for this! idk why remix isnt implementing this, the v2 route is simply unusable with crazy large number of routes |
Beta Was this translation helpful? Give feedback.
-
@kiliman related question.
What is the expected routes for the structure above? In the latest version I dont think nested hybrid folders work as expected. I would expect the following routes:
but instead the output is the following:
If thats not a supported feature would be interesting to highlight in the readme. |
Beta Was this translation helpful? Give feedback.
Sorry, I was just about to reply. Yes, the README needs to be rewritten with more examples.
Basically, you can take your existing v2 routes, and if you want to organize them into folders, you can create a folder with the
+
suffix.As for the route module, I tried to make it flexible. You can use index, layout, page, route, and anything starting with
_
. This way you can name it like_about
, so you don't have a bunch of route.tsx files.