Public Preview - This version is in public preview and subject to changes. For production use, please use SDK v4.
Setting Up Store Observers
Using theregisterObserver
method, set up an observer within the store
namespace enclosed with a query that specifies the collection to watch for changes, as well as your logic to handle the incoming changes.
Store Observer with Query Arguments
To associate arguments with your query add them as a parameter.Canceling a Store Observer
To cancel a store observer, callcancel
on the observer object.
Once canceled, the store observer will stop processing in the background and will no longer call the provided callback.