Nested but shared routes
I love tanstack router combined with tanstack query - it’s solid AF. But despite all of that I’m still hitting a roadblock. I’ve got 2 pages with layout
- _layout
- _layout/A
- _layout/B
But now consider this:
- _layout
- _auth
- _layout/_auth/A
- _layout/B
- _auth/C
Is there a way to reuse _auth across the routes? Imagine that _auth in both cases do the same - it contains the same loader function.
- _layout
- _layout/A
- _layout/B
But now consider this:
- _layout
- _auth
- _layout/_auth/A
- _layout/B
- _auth/C
Is there a way to reuse _auth across the routes? Imagine that _auth in both cases do the same - it contains the same loader function.