Skip to content

Commit c8fcd79

Browse files
committed
Revert "fix: update route matching fallback to use last match instead of first in components.tsx"
This reverts commit dd65119.
1 parent dd65119 commit c8fcd79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routers/components.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ function Routes(props: { routerState: RouterContext; branches: Branch[] }) {
135135
createOutlet(() => routeStates()[i + 1]),
136136
() => {
137137
const routeMatches = props.routerState.matches();
138-
return routeMatches[i] ?? routeMatches[routeMatches.length - 1];
138+
return routeMatches[i] ?? routeMatches[0];
139139
}
140140
);
141141
});

0 commit comments

Comments
 (0)