[ SOLVED ] Tracker.autorun from other template get executed on other template load


#1

Hi all,

I had some problem with the flow of Tracker.autorun. I had one on one of my template’s (Blaze) onCreated function.

But when my route (FlowRouter) access another unrelated template, I see the console.log from Tracker.autorun of the above mentioned template gets executed.

Is that expected behaviour? I didn’t expect it to run. Please advice why this is happening. Thanks.


#2

I change from Tracker.autorun to this.autorun and it’s working as expected now.