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.
Please login to continue.