@@ -5,7 +5,7 @@ import { createRoutes } from './RouteUtils'
5
5
import { canUseMembrane } from './deprecateObjectProperties'
6
6
import deprecateLocationProperties from './deprecateLocationProperties'
7
7
8
- function getChildRoutes ( route , location , paramNames , paramValues , remainingPathname , callback ) {
8
+ function getChildRoutes ( route , location , paramNames , paramValues , callback ) {
9
9
if ( route . childRoutes ) {
10
10
return [ null , route . childRoutes ]
11
11
}
@@ -15,8 +15,7 @@ function getChildRoutes(route, location, paramNames, paramValues, remainingPathn
15
15
16
16
let sync = true , result , partialNextStateWithLocation
17
17
const partialNextState = {
18
- params : createParams ( paramNames , paramValues ) ,
19
- remainingPathname
18
+ params : createParams ( paramNames , paramValues )
20
19
}
21
20
22
21
if ( __DEV__ && canUseMembrane ) {
@@ -172,7 +171,7 @@ function matchRouteDeep(
172
171
}
173
172
}
174
173
175
- const result = getChildRoutes ( route , location , paramNames , paramValues , remainingPathname , onChildRoutes )
174
+ const result = getChildRoutes ( route , location , paramNames , paramValues , onChildRoutes )
176
175
if ( result ) {
177
176
onChildRoutes ( ...result )
178
177
}
0 commit comments