Demo
0
/
History (limited to 10 records for demo)
Usage
useStateHistory
tracks a box's
value, logging each change into an array.
You can also use box.with
to track existing $state.
Besides log
, the returned object contains undo
and redo
functionality.