Meteor - Stop Reactivity on ONE variable

meteor

Solution

You should be able to achieve that with `Tracker.nonreactive`.

Non-tested example:

// Get a session value in a non reactive way.
var myValue = Tracker.nonreactive(function(){
    return Session.get('theKey')
})

// Use myValue however you please.

Problem

In Meteor, how can I stop reactivity on ONE variable? I want all the other variables reactive except for this one variable. Is this possible?

Original source