▲ Implementing Undo-Redo in React at ameyakarve.com▼1 up and 0 down, posted by eskimoblood 3856 days ago 4 comments
n1k0 3856 days ago. link 2 points ▲ ▼No need of Om, Mori or immutable data structures really http://prometheusresearch.github.io/react-forms/examples/undo.html
andreypopp 3849 days ago. link 1 point ▲ ▼React Forms uses immutable data (not so advanced as mori, just makes sure it doesn't mutate and produces a new copy on update). So that UndoMixin only works with immutable data.
n1k0 3856 days ago. link 2 points ▲ ▼You're welcome. Sample implementation outside of react-forms: - https://github.com/n1k0/kept/blob/master/src/js/mixins/UndoStack.js - https://github.com/n1k0/kept/blob/master/src/js/components/KeptApp.jsx#L14-L29