There are usually 2 different ways to handle undo / redo
you snapshot and store the states, so you can load them anytime
you store the deltas or events/commands/actions between save points.
Method 1 is simplistic. But it works. It's a lot like git.
It works with the reactive flow.
Method 2 has certain use cases. It might map better to a collaborative
environment. It is more like hg. It might be a little towards
operational transformation.
There are usually 2 different ways to handle undo / redo
Method 1 is simplistic. But it works. It's a lot like git. It works with the reactive flow.
Method 2 has certain use cases. It might map better to a collaborative environment. It is more like hg. It might be a little towards operational transformation.
I think I'll try method 1 first.