S
SolidJS15mo ago
Levi B.

Nested layouts

Is there a way to opt out of nested layouts for a certain child route in solid-start?
1 Reply
jesseb34r
jesseb34r15mo ago
you can use route groups to apply layouts to some but not all files in a certain route without changing the url:
src/
-- route1.tsx <-
-- route1/
---- subroute1.tsx
---- (group).tsx <- layout for (group)
---- (group)/
------- subroute2.tsx
src/
-- route1.tsx <-
-- route1/
---- subroute1.tsx
---- (group).tsx <- layout for (group)
---- (group)/
------- subroute2.tsx
where subroute1 does not have the layout and subroute2 does