Still having some problems understanding the concept of Reactive-Var.
I have a collection
AppSettings. When I access it via
AppSettings.findOne().settingX everything works reactive: if I change the value in the database, the methods that use
settingX are using the updated value.
If I want to have the results of
AppSettings.findOne() in a variable now, which is again reactive, how can this be set up?
MyAppSettings = new ReactiveVar(AppSettings.findOne());
However, whenf I call
MyAppSettings.get().settingX it does not react to changes in the database. Do I need to put this in
Meteor.autorun or something?