Skip to content

Commit bfb18e6

Browse files
committed
Remove usage of remainingPathname for the moment
1 parent d3b7ce5 commit bfb18e6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

modules/matchRoutes.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { createRoutes } from './RouteUtils'
55
import { canUseMembrane } from './deprecateObjectProperties'
66
import deprecateLocationProperties from './deprecateLocationProperties'
77

8-
function getChildRoutes(route, location, paramNames, paramValues, remainingPathname, callback) {
8+
function getChildRoutes(route, location, paramNames, paramValues, callback) {
99
if (route.childRoutes) {
1010
return [ null, route.childRoutes ]
1111
}
@@ -15,8 +15,7 @@ function getChildRoutes(route, location, paramNames, paramValues, remainingPathn
1515

1616
let sync = true, result, partialNextStateWithLocation
1717
const partialNextState = {
18-
params: createParams(paramNames, paramValues),
19-
remainingPathname
18+
params: createParams(paramNames, paramValues)
2019
}
2120

2221
if (__DEV__ && canUseMembrane) {
@@ -172,7 +171,7 @@ function matchRouteDeep(
172171
}
173172
}
174173

175-
const result = getChildRoutes(route, location, paramNames, paramValues, remainingPathname, onChildRoutes)
174+
const result = getChildRoutes(route, location, paramNames, paramValues, onChildRoutes)
176175
if (result) {
177176
onChildRoutes(...result)
178177
}

0 commit comments

Comments
 (0)