xplato / useUndoable

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

Compare single array schemes #35

Open vaynevayne opened 3 weeks ago

vaynevayne commented 3 weeks ago
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? This plan seems simple, is there any disadvantage?

xplato commented 2 weeks ago

Hey @vaynevayne! I'm not sure I fully understand the issue you've raised here. Are you wondering if implementing undo/redo functionality on your own using that structure is practical?

Let me know, thank you!