News for hackers. Stuff that matters.
Re:Writing a tiny undo/redo stack in JavaScript by 2bit on Thursday March 27, 2025 @01:14PM (#43495693)
You can find a similar method in zundo, a zustand middleware for undo/redo. It has the concept of pastStates and futureStates.

There are no comments on this comment yet.