Tracker.autorun

Client

Tracker.autorun(runFunc, [options])

import { Tracker } from 'meteor/tracker' Source

Run a function now and rerun it later whenever its dependencies change. Returns a Computation object that can be used to stop or observe the rerunning.

Arguments

runFunc Function

The function to run. It receives one argument: the Computation object that will be returned.

Options

onError Function

Optional. The function to run when an error happens in the Computation. The only argument it recieves is the Error thrown. Defaults to the error being logged to the console.

doc_Meteor
2016-05-29 17:26:06
Comments
Leave a Comment

Please login to continue.