Replaces store's state with the provided value.
value to be used as the new state of a store.
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
Builds on top of Readable and represents a store that can be manipulated from "outside": anyone with a reference to writable store can either update or completely replace state of a given store.
Example