T
TanStack5h ago
xenial-black

The sub-route's context type is inferred as undefined, which contradicts the facts.

As the title suggests, here are the reproduction steps: https://stackblitz.com/edit/github-emnv33sw?file=src%2Froutes%2F_pathless%2Froute.tsx,src%2Froutes%2F_pathless%2Fchild.tsx I'm working on a protected API route using pathless middleware. Any suggestions for a better implementation are welcome!
StackBlitz
Router Start Basic Example - StackBlitz
Run official live example code for Router Start Basic, created by Tan Stack on StackBlitz
1 Reply
xenial-black
xenial-blackOP3h ago
I've written a bit more code, and I'm still struggling to understand the distinction between pathless routes and route groups. Their functionality seems very similar to me. The URLs look the same, and both appear to execute route.tsx. Can someone clarify the key differences?

Did you find this page helpful?