News for hackers. Stuff that matters.
Re:Show HN: Build your first real world React.js application by pavlov on Wednesday September 07, 2016 @03:42PM (#12446715)
Instead 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.
Re:Show HN: Build your first real world React.js application by eschutte2 on Wednesday September 07, 2016 @08:25PM (#12449232)
Yes, AKA "poor man's undo."
Re:Show HN: Build your first real world React.js application by pavlov on Thursday September 08, 2016 @02:57AM (#12450840)
Why ask the question if you knew the answer?