Why Meteor Router Features Always Run Twice
I am using a meteorite router package.
Meteor.Router.add
"/article/:id": ->
log "article"
"article"
When the article / template page is loaded, the callback function in the router always starts twice. I am trying to use the callback function to increase the number of article views. Thus, this creates a problem (each inc is executed twice).
Is this intended behavior? Or did I do something wrong?
UPDATE
In fact, this is not always done twice. This happens when the page is refreshed or for the first time the browser goes to the page. Despite this, this still poses a problem.
+5