replicache icon indicating copy to clipboard operation
replicache copied to clipboard

Undo/Redo

Open aboodman opened this issue 1 year ago • 8 comments

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.

aboodman avatar Jul 31 '22 00:07 aboodman

What else needs to be done here? Is https://github.com/rocicorp/undo enough to close this?

@cesara

arv avatar Oct 20 '22 19:10 arv

@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.

cesara avatar Oct 21 '22 01:10 cesara

I see. This is still future work then.

arv avatar Oct 21 '22 10:10 arv

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.

heymartinadams avatar Jun 20 '23 15:06 heymartinadams

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.

aboodman avatar Jun 26 '23 22:06 aboodman