Skip to content

Commit b950d73

Browse files
committed
Better method name
1 parent 94509e7 commit b950d73

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/useRoutes.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function useRoutes(createHistory) {
2525
return _isActive(pathname, query, indexOnly, state.location, state.routes, state.params);
2626
}
2727

28-
function matchRoutesWithWarning(routes, location, callback) {
28+
function matchRoutesWithGuaranteedState(routes, location, callback) {
2929
matchRoutes(routes, location, function (error, nextState) {
3030
if (error || nextState) {
3131
callback(error, nextState);
@@ -49,7 +49,7 @@ function useRoutes(createHistory) {
4949
// Continue from where we left off.
5050
finishMatch(partialNextState, callback);
5151
} else {
52-
matchRoutesWithWarning(routes, location, function (error, nextState) {
52+
matchRoutesWithGuaranteedState(routes, location, function (error, nextState) {
5353
if (error) {
5454
callback(error);
5555
} else {
@@ -92,7 +92,7 @@ function useRoutes(createHistory) {
9292
}
9393

9494
function transitionHook(location, callback) {
95-
matchRoutesWithWarning(routes, location, function (error, nextState) {
95+
matchRoutesWithGuaranteedState(routes, location, function (error, nextState) {
9696
if (error) {
9797
// TODO: Handle the error.
9898
callback(false); // Cancel the transition.

0 commit comments

Comments
 (0)