Readonly
$version
A version representation of the value. If two versions of a val is not equal(Object.is
),
it means the value
has changed (event if the value
is equal).
Readonly
brand
Get current value of the val.
Readonly
value
Current value of the val.
Subscribe to value changes without immediate emission.
Optional
eager:
boolean
by default subscribers will be notified on next tick. set true
to notify
subscribers of value changes synchronously.
a disposer function that cancels the subscription
Subscribe to value changes with immediate emission.
Optional
eager:
boolean
by default subscribers will be notified on next tick. set true
to notify
subscribers of value changes synchronously.
a disposer function that cancels the subscription
A ReadonlyVal contains a readonly
value
and does not have aset
method.