Do I have to call the helper helper in the template to see the stack trace?


#1

Do I have to include/call the following helper in the template to see the stack trace
or the stack trace will be displayed anyway?

Template.myTemplate.helpers({
helper() {
// When this helper is scheduled to re-run, the console.trace will log a stack trace of where
// the invalidation has come from (typically a changed message from some reactive variable).
Tracker.onInvalidate(() => console.trace());
}
});


#2

If I understand you correctly, then yes. The helper I don’t believe is called unless you use it.