I need to access the previous state of the document before a user does a change. I thought I could just do a deep copy of the document for now each time the user changes something.
But several things I tried came with issues. the clone function on the currentPage gives the nodes new ids. Lodash did not work either, I could not access “children” on a node anymore for some reason.
Do you have any idea how I could do this?
I think I could do it on each node individually but that feels like an awful solution, not sure yet.
Thanks in advance for any inputs!