You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to have the possibility to have some component files directly in my routes directory, that will not generate a new route.
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.
Here the _component1.jsx would be use in other pages in this and only this directory, and it would not generate a new path in the router, so website.com/path1/_component1 would not exist.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'd like to have the possibility to have some component files directly in my routes directory, that will not generate a new route.
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.
Here is an example:
Here the
_component1.jsx
would be use in other pages in this and only this directory, and it would not generate a new path in the router, sowebsite.com/path1/_component1
would not exist.Is there a way to solve this in SolidStart?
Thank you for yorr time in advance.
Beta Was this translation helpful? Give feedback.
All reactions