Please save me some time and use the following template. In 90% of all issues I can't reproduce the problem because I don't know what exactly you are doing, in which environment, or which y-* version is responsible. Just use the following template even if you think the problem is obvious.
Checklist
[x] Are you reporting a bug? Use github issues for bug reports and feature requests. For general questions, please use https://discuss.yjs.dev/
[x] Try to report your issue in the correct repository. Yjs consists of many modules. When in doubt, report it to https://github.com/yjs/yjs/issues/
Describe the bug
After some specially updates, the ProseMirror's state and the YJS state are out of sync. These two store different content. Some text inside the YJS state disappears unexpectedly.
Checklist
Describe the bug
After some specially updates, the ProseMirror's state and the YJS state are out of sync. These two store different content. Some text inside the YJS state disappears unexpectedly.
To Reproduce
Steps to reproduce the behavior:
pnpm install
pnpm dev
to start a dev server. Open the web page in the browserclick
button three times. Wait for 2 seconds between two clicks.Notice that text
B
is still on the screen, but disappears in the YJS state.Expected behavior
The content inside YJS and PM should not mismatch
Screenshots
https://user-images.githubusercontent.com/24715727/229290331-7c949389-37fe-4823-bb59-b580cc6f8ea3.mp4
Environment Information