Skip to main content

update_object

Function update_object 

Source
pub(super) fn update_object(
    store: &Store,
    value: Value,
) -> Result<(String, String, Value), String>
Expand description

Update a wave object by replacing it wholesale in the store. The incoming value must have otype and oid fields. Returns (otype, oid, updated_value_with_new_version) on success.

Only for objects the srv reducer doesn’t own: a client row, or a layout row no tab references. Workspace/tab/block/window rows are refused — a whole-row write would overwrite reducer-owned fields behind its back.