Replies: 1 comment 3 replies
-
an index route is a leaf in the route tree. you need this: export const usersRoute = createRoute({
getParentRoute: () => rootRoute,
path: 'users',
});
export const usersIndexRoute = createRoute({
getParentRoute: () => usersRoute,
path: '/',
component: UsersPage,
});
const usersDetailsRoute = createRoute({
getParentRoute: () => usersRoute,
path: '$id',
component: UsersDetailsPage,
});
export const usersRoutes = usersRoute.addChildren([usersIndexRoute, usersDetailsRoute]); please checkout the code based examples |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have my index page at '/' which lists my users, when I click on a list item I want to display a different page '/$id' which is the details page. I have it currently implemented like this, but when I navigate to /$id the url is updated with the id but nothing else happens?
Beta Was this translation helpful? Give feedback.
All reactions