TanStackT
TanStack4mo ago
6 replies
foolish-indigo

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
Run official live example code for Router Start Basic, created by Tan Stack on StackBlitz
Router Start Basic Example - StackBlitz
Was this page helpful?