How do I create a deep copy of a mobx class with observables and computeds?

Viewed 1737

I want to create a deep copy of an object that has mobx observable and computed properties.

The goal is to create copy item for local editing, that can be committed or discarded.

I've found an example of this behavior but it is from mobx-state-tree:

enter image description here

How can I achieve the same behaviour in mobx?

1 Answers
Related