y-crdt icon indicating copy to clipboard operation
y-crdt copied to clipboard

yffi: observer callbacks do not supply the transaction origin

Open britannio opened this issue 5 months ago • 2 comments

I'm working on a y-crdt port to Dart (https://github.com/britannio/y_dart) but the lack of an origin in observe callbacks makes it more challenging to implement bindings for storage and text editing.

My current solution introduces a transaction_origin_data() function copied from YUndoEvent.new https://github.com/britannio/y_dart/blob/044c6d5f1022fcbbe7d21d342297fa24a07645a6/rust/src/lib.rs#L510-L544

britannio avatar Sep 14 '24 14:09 britannio