The type that is returned when calling
observeLocal() on a
PendingCursorOperation object. It handles the logic for calling the
event handler that is provided to observeLocal() calls.
Ditto will prevent the process from exiting as long as there are
active live queries (not relevant when running in the browser).
LiveQuery objects must be kept in scope for as long as you wish to have
your event handler be called when there is an update to a document matching
the query you provide. When you no longer want to receive updates about
documents matching a query then you must call stop().
The type that is returned when calling observeLocal() on a PendingCursorOperation object. It handles the logic for calling the event handler that is provided to
observeLocal()
calls.Ditto will prevent the process from exiting as long as there are active live queries (not relevant when running in the browser).
LiveQuery
objects must be kept in scope for as long as you wish to have your event handler be called when there is an update to a document matching the query you provide. When you no longer want to receive updates about documents matching a query then you must call stop().