Duplicates
Latest version
Summary 💡
My idea (and need) is to have the possibility to have some component files directly in my routes directory, that will NOT generate a new route
-- It'd be beneficial for having a better organized codebase.
Examples 🌈
Here is an example
Directory structure:
/src/routes/
|
+ ...
|
+ path1/
| |
| + index.jsx
| |
| + subpage.jsx
| |
| + _component1.jsx
+ ...
Here the _component1.jsx would be used by multiple pages in this directory (index and subpage) -- and it would not generate a new path in the router, so website.com/path1/_component1 would not exist.
Motivation 🔦
Some of my pages contain more code so I like to split some components into their individual files, but to make well structured, I'd like to store these component files where they are used.
Some other routers in other projects have this functionality but I couldn't find any info for SolidStart.
This would help to keep the code of one functionality in one place.
Thanks.
Gabriel
Duplicates
Latest version
Summary 💡
My idea (and need) is to have the possibility to have some component files directly in my routes directory, that will NOT generate a new route
-- It'd be beneficial for having a better organized codebase.
Examples 🌈
Here is an example
Directory structure:
Here the
_component1.jsxwould be used by multiple pages in this directory (indexandsubpage) -- and it would not generate a new path in the router, sowebsite.com/path1/_component1would not exist.Motivation 🔦
Some of my pages contain more code so I like to split some components into their individual files, but to make well structured, I'd like to store these component files where they are used.
Some other routers in other projects have this functionality but I couldn't find any info for SolidStart.
This would help to keep the code of one functionality in one place.
Thanks.
Gabriel