File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -77,8 +77,7 @@ function useRoutes(createHistory) {
77
77
if ( error ) {
78
78
callback ( error ) ;
79
79
} else {
80
- state = { ...nextState , components } ;
81
- callback ( null , state ) ;
80
+ callback ( null , { ...nextState , components } ) ;
82
81
}
83
82
} ) ;
84
83
}
@@ -113,8 +112,6 @@ function useRoutes(createHistory) {
113
112
result = hooks [ i ] ( location ) ;
114
113
}
115
114
116
- // Callback with the result from the first route
117
- // hook that has a non-null return value.
118
115
callback ( result ) ;
119
116
}
120
117
} ) ;
@@ -133,8 +130,6 @@ function useRoutes(createHistory) {
133
130
message = hooks [ i ] ( ) ;
134
131
}
135
132
136
- // Return the result from the first route hook
137
- // that returns a prompt message.
138
133
return message ;
139
134
}
140
135
}
You can’t perform that action at this time.
0 commit comments