I’m developing an application where I need to calculate the user that last edited a particular piece of content (eg a paragraph). I understand that this information isn’t strictly stored in the CRDT, for the purposes of this app the last user that the central source of truth received is a good enough estimate.
I was thinking I can hook into either
update on the server to record changes as they come in. Which would be more appropriate?
With afterTransaction I’m finding it very difficult to determine which user actually performed the change in the transaction. Looking for ideas on approach, I’ve been banging my head on this for a while.