useUndoable icon indicating copy to clipboard operation
useUndoable copied to clipboard

↪ React hook for undo/redo functionality (with batteries included)

Results 6 useUndoable issues
Sort by recently updated
recently updated
newest added

Is there a way to know if my state is "dirty", if it's different from the initial state ? ``` // or maybe isModified const [myState, setMyState, {undo, redo, isDirty}]...

Hi, I am working on complex interaction with multiple components supporting drag and drop. I found out that it was much easier to handle that by wrapping your hook inside...

Version 6 of useUndoable will feature a lot of quality improvements to documentation, structure, testing, and the API in general. The underlying functionality will remain the same, with a few...

```jsx const list = [] const index=0 ``` When I showed the data structure, the specific implementation was self-evident This kind of solution achieves undo and redo, is it okay?...

Hello. Thanks for all the hard work you put in here. I was a bit surprised the setState function was not stable. In react when using `useState` that function is...

Would save a bit of time with needing to check the source code. Thanks!