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
Represents a store that implements both ReadableSignal and Writable. This is the type of objects returned by writable.