UndoManager stack cleared after a removal on remote side
guigui64 opened this issue · comments
Describe the bug UndoManager stack seems to be cleared when remote removes an element in an array of a Y.Map entry.
To Reproduce Steps to reproduce the behavior:
- Go to 'this devbox'
- On one instance, do some stuff (like toggling todos for instance)
- On the other instance, remove one todo
- Undo on the first instance has no effect
Expected behavior Undo on the first instance should undo the actions taken at step 2.
Screenshots If applicable, add screenshots to help explain your problem.
Environment Information
"immer-yjs": "1.1.1",
"y-webrtc": "10.3.0",
"yjs": "13.6.12"
Additional context Add any other context about the problem here.
I think you will be able to debug this yourself.
Please first implement your app first using Yjs types (using insert
& delete
methods on Y.Array
). Then you can try moving to an abstraction layer like immer. This is definitely a bug on your end.