TanStackT
TanStack8mo ago
25 replies
static-pink

I dont understand route matching.

I have the following routes

fruits.tsx
fruits.brazil.tsx
fruits.brazil.$fruitId.tsx


when i go to /fruits/brazil i see the page for /fruits. to make this work corectly I need to add index as a suffix to all routes without a $, which seems very counterproductive. What am I missing?
Was this page helpful?