Skip to content

setProperties behaviour #120

@denzo

Description

@denzo

We have a scenario where one action updates numerous properties on an object.

actions: {

  changeItemType(item, type) {
    setProperties(item, {
      type,
      options: options.findBy('type', type)
    });
  } 

}

When we call item.undo() we would expect all the attributes updates in the action to be reverted but it turns out that each attribute change is recorded as one undo.

Is there currently a way to achieve our requirement?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions