4 Replies
optimistic-goldOP•3mo ago
here's the routeTree.gen.ts
optimistic-goldOP•3mo ago
optimistic-goldOP•3mo ago

optimistic-goldOP•3mo ago
i think i know why it happens
i am using a monorepo (turborepo) and i am using router in the component, so every additional /blabla/blabla is specific to this component. that component is called
Studio
and it is under /packages folder. However localhost is a vite app with the only /
route and it does not understand what /project/123
is, so it's the client freaking out.
to fix it i need to mount my Studio
component in an app, in a route where app does not care what goes after /, like in nextjs /[[...segments]]/
and the component would read the url to handle the navigation
i guess that's what i shall go
https://tanstack.com/router/latest/docs/framework/react/routing/routing-concepts#splat--catch-all-routes