See cell
interface Cell<T> { get(): T; set(value: T): void; subscribe( callback: (value: T) => void, notifyImmediately?: boolean, ): () => void;}
Get the current value
Set the value and triggers subscribers if the new value is not the same reference (compared with ===)
===
Add a subscriber. Returns a function to unsubscribe
See cell