Interface SubscribableStore<T>

Represents a store accepting registrations (subscribers) and "pushing" notifications on each and every store value change.

interface SubscribableStore<T> {
    subscribe(subscriber): Unsubscriber;
}

Type Parameters

  • T

Hierarchy (view full)

Methods

Methods

  • A method that makes it possible to register "interest" in store value changes over time. It is called each and every time the store's value changes.

    A registered subscriber is notified synchronously with the latest store value.

    Parameters

    Returns Unsubscriber

    The UnsubscribeFunction or UnsubscribeObject that can be used to unsubscribe (stop state change notifications).

Generated using TypeDoc