A writable signal. Call it with no arguments to read the current value, or with one argument to set a new value. Subscribers are notified whenever the value changes (strict equality).
Readonly
Subscribe to value changes. Notifications are synchronous: observers are called at the write that changed the value.
a Subscription which lets you unsubscribe.
A writable signal. Call it with no arguments to read the current value, or with one argument to set a new value. Subscribers are notified whenever the value changes (strict equality).