Skip to content

Commit 6228524

Browse files
committed
Add TODO
1 parent 08c95a7 commit 6228524

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/useRoutes.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,8 @@ function useRoutes(createHistory) {
216216
* gracefully handle errors and redirects.
217217
*/
218218
function listen(listener) {
219+
// TODO: Only use a single history listener. Otherwise we'll
220+
// end up with multiple concurrent calls to match.
219221
return history.listen(function (location) {
220222
if (state.location === location) {
221223
listener(null, state)

0 commit comments

Comments
 (0)