StateHistory
Track state changes with undo/redo capabilities
Demo
Count: 0
/
History (limited to 10 records for demo)
Usage
StateHistory
tracks a getter's return value, logging each change into an array. A setter is also
required to use the undo
and redo
functions.
Besides log
, the returned object contains undo
and redo
functionality.