A val of value
Optional
eager: booleanTrigger subscription callback synchronously. Default true.
the value
Accepts a val from anywhere and returns the latest value.
It only triggers re-rendering when new value emitted from val (base on val $version
instead of React's Object.is
comparison).
Optional
val$: ReadonlyVal<TValue>A val of value
Optional
eager: booleanTrigger subscription callback synchronously. Default true.
the value, or undefined if val is undefined
Returns the value if it is not a val.
A non-val value
Optional
eager: booleanTrigger subscription callback synchronously. Default true.
the value
Returns the value if it is not a val.
Optional
value: TValueA non-val value
Optional
eager: booleanTrigger subscription callback synchronously. Default true.
the value
Accepts a val from anywhere and returns the latest value. It only triggers re-rendering when new value emitted from val (base on val
$version
instead of React'sObject.is
comparison).