4 ms·
How would you do playback and automatic undo/redo without encapsulating your state transitions?
by eschutte2 10y ago
How would you do playback and automatic undo/redo without encapsulating your state transitions?
- pavlov 10y agoInstead of storing an action descriptor stack, you can also implement undo/redo by storing all past versions of the model on the server. I know surprisingly complex applications with large data sets that do this. The important point of course is that any large data should reside in separate immutable storage, so that the top-level model (which gets serialized for each action) remains as lightweight as possible.