Skip to content

Commit

Permalink
Add TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
mjackson committed Sep 25, 2015
1 parent 08c95a7 commit 6228524
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/useRoutes.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,8 @@ function useRoutes(createHistory) {
* gracefully handle errors and redirects.
*/
function listen(listener) {
// TODO: Only use a single history listener. Otherwise we'll
// end up with multiple concurrent calls to match.
return history.listen(function (location) {
if (state.location === location) {
listener(null, state)
Expand Down

0 comments on commit 6228524

Please sign in to comment.