Layouts w/ Component Rendering please?!
How may we group routes w/o a common path while using component rendering please? Below I tried not putting a path for the layout components but when I test this the app is a white screen & the server terminal says 'No route matched for preloading js assets". If I add a path for each layout this works but then the url has to be example: /guest/sign-in but the goal is for the url to be /sign-in and for the layout to be Guest w/ component rendering please!
Btw I also tried: <Route path="/(guest)" component={Guest}>
This matches the url
/(guest)/sign-in
so does not hide in the url like in File routing3 Replies
What you did should work (not providing a path prop to Route):
https://stackblitz.com/edit/github-q6b2byxy?file=src%2Fapp.tsx
We can do FileRoutes and component routing at the same time! Wow talk about luxry!
And yay it works thank you so much!
The original bug was user error, I had some css on the page that had the text turn white so with the white background i thought it didn't work 😅 Solid was always workin!
Classic 😂