computation.onInvalidate

Client

computation.onInvalidate(callback)

Registers callback to run when this computation is next invalidated, or runs it immediately if the computation is already invalidated. The callback is run exactly once and not upon future invalidations unless onInvalidate is called again after the computation becomes valid again.

Arguments

callback Function

Function to be called on invalidation. Receives one argument, the computation that was invalidated.

doc_Meteor
2016-05-29 17:18:13
Comments
Leave a Comment

Please login to continue.