Comment Comment by 2bit You can find a similar method in zundo, a zustand middleware for undo/redo. It has the concept of pastStates and futureStates. parent 2bit 1 year ago