You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- / (have outlet)
- workspaces (folder, have outlet)
- $workspaceId.route.tsx (should be injected as index route into workspaces outlet)
- other-route.route.tsx (should be injected into workspaces outlet, when user navigates to /workspaces/other-route)
Migrating from react-router, I had structure like:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have this structure:
Migrating from
react-router
, I had structure like:As u can see, when user navigates to
root
url,react-router
, goes toworkspaces/:workspaceId
and injects the index page.How I can achieve the same thing in
tanstack-router
?I'm trying like this, even redirects,
$workspaceId.router.tsx
is never rendered (even as tried as lazy, only root):__root.tsx
Beta Was this translation helpful? Give feedback.
All reactions