v2.0.0-beta.0
Pre-release
Pre-release
What's Changed
- Updated undo and redo to accept a number of steps by @ivoilic in #32
- This includes an awesome mascot image made by @ivoilic 🎉
Breaking Changes
- Changes to undo/redo callbacks By default the event is passed which throws a type error since the functions are now expecting a number as the first parameter.
- <button onClick={undo} />
+ <button onClick={() => undo?.() />
clear
now becomescleaUndoHistory
- const { clear } = useUndoStore();
+ const { clearUndoHistory } = useUndoStore();
To use the beta: npm i [email protected]
Full Changelog: v1.5.9...v2.0.0-beta.0