We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
components.tsx
1 parent dd65119 commit c8fcd79Copy full SHA for c8fcd79
src/routers/components.tsx
@@ -135,7 +135,7 @@ function Routes(props: { routerState: RouterContext; branches: Branch[] }) {
135
createOutlet(() => routeStates()[i + 1]),
136
() => {
137
const routeMatches = props.routerState.matches();
138
- return routeMatches[i] ?? routeMatches[routeMatches.length - 1];
+ return routeMatches[i] ?? routeMatches[0];
139
}
140
);
141
});
0 commit comments