Some text is duplicated when two users concurrently make changes at the beginning of the same line #161
Closed
2 tasks done
Labels
bug
Something isn't working
Checklist
Describe the bug
When using
y-prosemirror
, and two users make a few edits to a line at the exact same line, I sometimes see some text duplicated. (See attached video for more info).To Reproduce
Steps to reproduce the behavior:
You'll notice that one of the characters becomes duplicated.
Expected behavior
No duplication - some kind of tie-breaking logic is used to figure out which edits land on the left/right.
Screenshots
I've reproduced the issue on the y-prosemirror demo environment ( https://demos.yjs.dev/prosemirror/prosemirror.html )
CleanShot.2024-07-17.at.12.59.19.mp4
I've also been able to reproduce it in other prosemirror-based environments (e.g. TipTap - https://templates.tiptap.dev )
updated.mp4
Environment Information
I can reproduce in chrome (126.0.6478.127), as well as safari, and firefox.
Locally, I encountered this issue with:
Additional context
I've also created a pull-request here with a test case which seems to reproduce the issue - #160 ( I'm not too familiar with the y.js internals, so this might not be accurate. )
Let me know if you need any other information!
The text was updated successfully, but these errors were encountered: