Class StoreObserver

A store observer invokes a given handler whenever results for its query change.

The store observer will remain active until it is cancelled, or the Ditto instance managing the observer has been closed.

Create a store observer by calling ditto.store.registerObserver().

Hierarchy

  • StoreObserver

Properties

Accessors

Methods

Properties

ditto: Ditto

The Ditto instance this store observer is registered with.

queryArguments?: Readonly<DQLQueryArguments>

The query arguments of the store observer (as passed when registering it).

queryString: string

The query string of the store observer (as passed when registering it).

Accessors

  • get isCancelled(): boolean
  • Convenience property, returns true once the store observer has been cancelled.

    Returns boolean

Methods

  • Cancels the store observer and unregisters it. No-op if the store observer has already been cancelled.

    Returns void