Can two Tracker.autorun exist in the same Template#onRendered?

Hello all,

As per the title, would like to know can two Tracker.autorun exist in the same Template#onRendered?

I tried it with console.log in it, it can run without problem, but when I put some function into each of it, then I got the following error.

Exception from Tracker recompute function

Please advice, thank you.

1 Like

Yea it should. I’ve been using multiple all the time. Be sure to use this.autorun in onRendered. The autorun will automatically be stopped if the template is destroyed

1 Like

What function would that be? You likely have an exception being thrown and not handled somewhere, but without seeing your code we can’t help you.

Hi, nevermind. Already fixed. The error is caused by GoogleMaps.ready(). Thanks anyway.