@@ -25,7 +25,7 @@ function useRoutes(createHistory) {
25
25
return _isActive ( pathname , query , indexOnly , state . location , state . routes , state . params ) ;
26
26
}
27
27
28
- function matchRoutesWithWarning ( routes , location , callback ) {
28
+ function matchRoutesWithGuaranteedState ( routes , location , callback ) {
29
29
matchRoutes ( routes , location , function ( error , nextState ) {
30
30
if ( error || nextState ) {
31
31
callback ( error , nextState ) ;
@@ -49,7 +49,7 @@ function useRoutes(createHistory) {
49
49
// Continue from where we left off.
50
50
finishMatch ( partialNextState , callback ) ;
51
51
} else {
52
- matchRoutesWithWarning ( routes , location , function ( error , nextState ) {
52
+ matchRoutesWithGuaranteedState ( routes , location , function ( error , nextState ) {
53
53
if ( error ) {
54
54
callback ( error ) ;
55
55
} else {
@@ -92,7 +92,7 @@ function useRoutes(createHistory) {
92
92
}
93
93
94
94
function transitionHook ( location , callback ) {
95
- matchRoutesWithWarning ( routes , location , function ( error , nextState ) {
95
+ matchRoutesWithGuaranteedState ( routes , location , function ( error , nextState ) {
96
96
if ( error ) {
97
97
// TODO: Handle the error.
98
98
callback ( false ) ; // Cancel the transition.
0 commit comments