Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Commit

Permalink
fix(page): set is tracked twice
Browse files Browse the repository at this point in the history
is not possible to hit the set event without the route object, because the path is not declared
it needs to be manually added by the developer
set page will be only used automatically when a router is provided or when in auto-tracking mode
  • Loading branch information
Matteo Gabriele committed Sep 13, 2017
1 parent 6c36053 commit e0280bb
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/lib/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ export function trackRoute (proxy, router) {
return
}

set('page', currentRoute.path)
page(proxy ? proxy(currentRoute) : router)
}

Expand Down

0 comments on commit e0280bb

Please sign in to comment.