File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -538,13 +538,13 @@ function useRoutes_(
538
538
) ;
539
539
}
540
540
541
- let constructedBasename = basename
541
+ let basenameForMatching = basename
542
542
? joinPaths ( [ parentPathname , basename ] )
543
543
: parentPathname ;
544
544
545
545
let matches = React . useMemo (
546
- ( ) => matchRoutes ( routes , location , constructedBasename ) ,
547
- [ location , routes , constructedBasename ]
546
+ ( ) => matchRoutes ( routes , location , basenameForMatching ) ,
547
+ [ location , routes , basenameForMatching ]
548
548
) ;
549
549
550
550
if ( ! matches ) {
@@ -560,7 +560,7 @@ function useRoutes_(
560
560
value = { {
561
561
outlet,
562
562
params : readOnly < Params > ( { ...parentParams , ...params } ) ,
563
- pathname : joinPaths ( [ constructedBasename , pathname ] ) ,
563
+ pathname : joinPaths ( [ basenameForMatching , pathname ] ) ,
564
564
basename,
565
565
route
566
566
} }
You can’t perform that action at this time.
0 commit comments