toArray()
- returns a history arrayarraySignal
- reactiveAccessor
of the history array
createUndoRedoSignal
=>createSignalWithHistory
clearHistory
=>clear
UndoRedoSignalOptions<T>
=>SignalWithHistoryOptions<T>
UndoRedoSignal<T>
=>SignalWithHistory<T>
UndoRedoAPI<T>
=>History<T>
- Fixed some bugs
- Fixed bug with isUndoPossible after clearing history with flag = true
- Added support for
clearCurrentValue
flag to clearHistory method
- Removed
onUndo
/onRedo
options for signal - Added ability to register multiple undo/redo callbacks with
registerCallback
- Added ability to remove these callbacks with
removeCallback
- Added
dispose
function which clears callbacks and history - Improved docs
- Now you don't need to always pass an initial value to the signal
reactiveHistoryGenerator
=>createHistoryIterator
Setter
type is not exported anymore. It's the same as in solid-js
- Added support for onUndo and onRedo callbacks