For the given object, if a watch is added to the given path the callback will
be invoked. When all the watches are removed, the handle returned by the
callback will be invoked.
A common use case for this is to notify changes to a property only if someone
is watching it, this avoids unnecessary work from the watch if no one is
watching the property.
For the given object, if a watch is added to the given path the callback will be invoked. When all the watches are removed, the handle returned by the callback will be invoked.
A common use case for this is to notify changes to a property only if someone is watching it, this avoids unnecessary work from the watch if no one is watching the property.