Skip to content
Discussion options

You must be logged in to vote

Updating the thread with working solution of the original question

✅ Working code (doesnt make use of `index.tsx)

Folder structure Verify Generated routes (`npx remix routes`)
├── dci
│  ├── index.tsx
│  ├── metro
│  │  └── visualizer
│  │     ├── ($device)
│  │     │  └── detail.tsx
│  │     └── ($device).tsx
<Routes>
  <Route file="root.tsx">
    <Route path="dci/metro/visualizer/:device?" file="routes/dci/metro/visualizer/($device).tsx">
      <Route path="detail" file="routes/dci/metro/visualizer/($device)/detail.tsx" />
    </Route>
  </Route>
</Routes>



❌ Previously incorrect code
I was incorrectly using index.tsx thinking I would still be able to generated nested route…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@cliffordfajardo
Comment options

@cliffordfajardo
Comment options

@kiliman
Comment options

@cliffordfajardo
Comment options

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