For some reason this is not allowed. I do not understand why. I think something like this should be supported:
template.onCreated(function () {
this.autorun(() => {
this.autorun(() => {
// do something
});
});
});
Ideally, the following would be equivalent:
template.onCreated(function () {
this.autorun(() => {
Tracker.autorun(() => {
// do something
});
});
});
But this would then be a solution for this as well: meteor/meteor#4494
For some reason this is not allowed. I do not understand why. I think something like this should be supported:
Ideally, the following would be equivalent:
But this would then be a solution for this as well: meteor/meteor#4494