TanStackT
TanStack2mo ago
7 replies
dramatic-maroon

Defining a deep route

In this example (https://tanstack.com/start/latest/docs/framework/react/examples/start-basic?panel=code), there is a route posts_.$postId.deep.tsx as one of its routes. There is an underscore after posts.

It would be great if it works without underscore (like posts.$postId.deep.tsx), but currently it seems it doesn't. I wanted to apply my layout file (posts.route.tsx) on the deep.tsx

Is there a way to get around it? Do I have to give up on file-based approach?
Maybe there is something that I'm misunderstanding. I'm pretty new to Tanstack Start. Thanks.
An example showing how to implement Start Basic in React using TanStack Start.
React TanStack Start Start Basic Example | TanStack Start Docs
Was this page helpful?