Skip to content

How to use nested route less layout the right way #3014

Closed Answered by silvenon
pkishorez asked this question in Q&A
Discussion options

You must be logged in to vote

Another hacky way to achieve this would be:

routes
├── blog
│   ├── __home
│   │   └── index.tsx
│   ├── __nested
│   │   ├── $id.tsx
│   │   └── new.tsx
│   └── __nested.tsx
└── index.tsx

However, it should work like in your first screenshot, I'm sad that it doesn't (tried it myself), and I remember finding myself in similar trouble. I hope that this is just a temporary problem in Remix, and I recommend raising an issue about this if there isn't one already.

Replies: 2 comments 12 replies

Comment options

You must be logged in to vote
3 replies
@pkishorez
Comment options

@silvenon
Comment options

@brophdawg11
Comment options

Answer selected by pkishorez
Comment options

You must be logged in to vote
9 replies
@brophdawg11
Comment options

@brophdawg11
Comment options

@silvenon
Comment options

@brophdawg11
Comment options

@brophdawg11
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants