We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08c95a7 commit 6228524Copy full SHA for 6228524
modules/useRoutes.js
@@ -216,6 +216,8 @@ function useRoutes(createHistory) {
216
* gracefully handle errors and redirects.
217
*/
218
function listen(listener) {
219
+ // TODO: Only use a single history listener. Otherwise we'll
220
+ // end up with multiple concurrent calls to match.
221
return history.listen(function (location) {
222
if (state.location === location) {
223
listener(null, state)
0 commit comments