replicache
replicache copied to clipboard
Undo/Redo
Undo/redo is a very common feature request in collaborative applications and doing it correctly is somewhat subtle (e.g., see posts by Figma and Liveblocks).
Many Replicache users have created undo/redo on their own without too much trouble but it would be good to provide a solid, tested library analogous to https://github.com/rocicorp/fractional-indexing and other helper libraries we've released.
What else needs to be done here? Is https://github.com/rocicorp/undo enough to close this?
@cesara
@arv there is a particular scenario that undo is not being handled correctly.
Reference our Redoing undo
notion doc for a clearer understanding of the issue.
We can open a new Issue to handle the invariant.
I see. This is still future work then.
Can we use this library already in production, or should we hold off until you launch this feature as part of the official Replicache? Undo/redo is a highly requested feature for us.
Here is the notion doc @cesara mentions: https://replicache.notion.site/Redoing-undo-c0183b91d12c4272a3482e3233cc2890?pvs=4.
It describes the edge case which this library doesn't handle.