Open zvictor opened 11 years ago
It seems to me that beforeRouting should run encapsulated by Deps.nonreactive.
beforeRouting
Deps.nonreactive
Trying to run the following code leads me to a infinite loop due to the reactivity:
Meteor.Router.beforeRouting = function() { var history = Session.get("history"); history.push(window.location); Session.set("history", history); };
I've got similar problems with infinite loops.
(I'm only setting Sessions within beforeRouting though, which I'm guessing shouldn't be a reactive data source.)
It seems to me that
beforeRouting
should run encapsulated byDeps.nonreactive
.Trying to run the following code leads me to a infinite loop due to the reactivity: