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.
a subscriber in a form of a SubscriberFunction or a SubscriberObject. Returns a Unsubscriber (function or object with the unsubscribe
method) that can be used to unregister and stop receiving notifications of store value changes.
The UnsubscribeFunction or UnsubscribeObject that can be used to unsubscribe (stop state change notifications).
Generated using TypeDoc
This interface augments the base SubscribableStore interface by requiring the return value of the subscribe method to be both a function and an object with the
unsubscribe
method.For interoperability with rxjs, it also implements the
[Symbol.observable]
method.