xplato / useUndoable

↪ React hook for undo/redo functionality (with batteries included)
MIT License
168 stars 7 forks source link

fix: Added stateRef for getting updated value in setState #6

Closed bhavyashah98 closed 2 years ago

xplato commented 2 years ago

Interesting commit. I'll need to do some more thorough testing to ensure the ref doesn't conflict with deeper mutation/state update issues.

Can you give me a short, explicit description of what the ref offers?

xplato commented 2 years ago

See my comment on issue #5 for information about why this PR was closed.