MHN
Add a comment on Hacker News →
1 of 69 comments
  1. You can find a similar method in zundo, a zustand middleware for undo/redo. It has the concept of pastStates and futureStates.