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.
1 parent 8af53e7 commit f77743aCopy full SHA for f77743a
packages/router/router.ts
@@ -4074,12 +4074,12 @@ function getShortCircuitMatches(routes: AgnosticDataRouteObject[]): {
4074
route: AgnosticDataRouteObject;
4075
} {
4076
// Prefer a root layout route if present, otherwise shim in a route object
4077
-let route =
4078
- routes.length === 1
4079
- ? routes[0]
4080
- : routes.find((r) => r.index || !r.path || r.path === "/") || {
4081
- id: `__shim-error-route__`,
4082
- };
+ let route =
+ routes.length === 1
+ ? routes[0]
+ : routes.find((r) => r.index || !r.path || r.path === "/") || {
+ id: `__shim-error-route__`,
+ };
4083
4084
return {
4085
matches: [
0 commit comments