Optional
options: Partial<ObjectOptions<V>>Notifies of which field(s) were changed.
If you just care about the whole, changed data use the value
event.
Use the returned function to unsubscribe.
Notifies when the value of fieldName
is changed.
Use the returned function to unsubscribe.
Updates the reactive with some partial key-value pairs. Keys omitted are left the same as the current value.
Returns new value
Updates a particular field by its path
Optional
options: Partial<ObjectOptions<V>>Notifies of which field(s) were changed.
If you just care about the whole, changed data use the value
event.
Use the returned function to unsubscribe.
Notifies when the value of fieldName
is changed.
Use the returned function to unsubscribe.
Updates the reactive with some partial key-value pairs. Keys omitted are left the same as the current value.
Returns new value
Updates a particular field by its path
Creates a Reactive wrapper with the shape of the input object.
Changing the wrapped object directly does not update the Reactive. Instead, to update values use:
set()
, 'resets' the whole objectupdate()
changes a particular fieldConsider using Rx.From.objectProxy to return a object with properties that can be set in the usual way yet is also Reactive.
Use
last()
to get the most recently set value.onDiff
subscribes to a rough diff of the object.You can also listen to updates on a field via
onField
.Param: initialValue
Initial value
Param: options
Options
Returns