yjs / yjs

Shared data types for building collaborative software

Home Page:https://docs.yjs.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

  1. Go to 'this devbox'
  2. On one instance, do some stuff (like toggling todos for instance)
  3. On the other instance, remove one todo
  4. 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.

Huly®: YJS-418

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.