T
TanStack8mo ago
ambitious-aqua

path: '/', is generated unexpectedly

I have 3 group routes, as shown, and only the (public) group has an index.tsx but a / path is generted for the (protected) what is even weirder is that the (auth) did not generate for this path
No description
7 Replies
fascinating-indigo
fascinating-indigo8mo ago
does it work at runtime though?
ambitious-aqua
ambitious-aquaOP8mo ago
in build you mean?
ambitious-aqua
ambitious-aquaOP8mo ago
same in build
No description
fascinating-indigo
fascinating-indigo8mo ago
I meant: does it navigate properly at runtime?
ambitious-aqua
ambitious-aquaOP8mo ago
no it's an empty page
ambitious-aqua
ambitious-aquaOP8mo ago
GitHub
GitHub - FatahChan/pwa-spa-starter
Contribute to FatahChan/pwa-spa-starter development by creating an account on GitHub.
ambitious-aqua
ambitious-aquaOP8mo ago
it is bug, they fixed it I think https://github.com/TanStack/router/pull/3289
GitHub
fix(router-generator): reset route-group Regex when calling `handle...
This was a weird one 🤔. Since the Regex we use for checking if a "route-node" is a possible "route-group" uses the global flag, it carries some state across runs...

Did you find this page helpful?