Throttling Tracker.autorun

It’d be nice if there was a built-into-Meteor way to throttle Track.autoruns. F.e.

Tracker.autorun(function() {...}, 1000) // fire only once every second if updates are happening really fast.
1 Like

you can stop autorun and call Timeout to start new one in second.

1 Like

Not sure if this would work but you could wrap that function inside a _.debounce().

1 Like