T
TanStack11mo ago
plain-purple

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
foreign-sapphire
foreign-sapphire11mo ago
does it work at runtime though?
plain-purple
plain-purpleOP11mo ago
in build you mean?
plain-purple
plain-purpleOP11mo ago
same in build
No description
foreign-sapphire
foreign-sapphire11mo ago
I meant: does it navigate properly at runtime?
plain-purple
plain-purpleOP11mo ago
no it's an empty page
plain-purple
plain-purpleOP11mo ago
GitHub
GitHub - FatahChan/pwa-spa-starter
Contribute to FatahChan/pwa-spa-starter development by creating an account on GitHub.
plain-purple
plain-purpleOP11mo 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?