Subscribe to Evented Mind to watch the full video.

Already have an Evented Mind subscription?

Subscribe to Evented Mind to watch the full video.

Need a second look? Watch again

Tracker

Only Run A Function Once

Sometimes you want to make sure a piece of code only runs once, instead of every time a computation reruns. A common example is when reporting a page view metric inside of a reactive route function. In this tip I'll show you two ways to accomplish this task.

  • Meteor
Join the Discussion

Want to leave a comment? .