Skip to content

Commit 324ff7c

Browse files
committed
fix comments
1 parent dabe09f commit 324ff7c

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

packages/react/src/reactrouter-compat-utils/instrumentation.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ import {
4848
prefixWithSlash,
4949
rebuildRoutePathFromAllRoutes,
5050
resolveRouteNameAndSource,
51-
routeIsDescendant,
5251
} from './utils';
5352

5453
let _useEffect: UseEffect;

packages/react/src/reactrouter-compat-utils/utils.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ export function pathIsWildcardAndHasChildren(path: string, branch: RouteMatch<st
4545
return (pathEndsWithWildcard(path) && !!branch.route.children?.length) || false;
4646
}
4747

48-
/**
49-
*
50-
*/
48+
/** Check if route is in descendant route (<Routes> within <Routes>) */
5149
export function routeIsDescendant(route: RouteObject): boolean {
5250
return !!(!route.children && route.element && route.path?.endsWith('/*'));
5351
}
@@ -130,8 +128,6 @@ export function rebuildRoutePathFromAllRoutes(allRoutes: RouteObject[], location
130128
return '';
131129
}
132130

133-
// fixme: this maybe has a bug
134-
135131
for (const match of matchedRoutes) {
136132
if (match.route.path && match.route.path !== '*') {
137133
const path = pickPath(match);

0 commit comments

Comments
 (0)