hackerwins/codepair-old

Sometimes `Edit` operations apply twice

Eithea opened this issue · 1 comments

What happened:
버그

There is a problem about text breaking, but the exact cause is unknown.

When looking at the shape of the broken text, it can be assumed that the Edit operations are applied twice.
(for example from above text, if all edits that write the text -> 메시지 손실이 생기는 방법이 좋은 걸까? are executed twice, then the next text ?ㄲㄱ ㅇㅈ ㅇㅂㅂ 느ㄱㅅ ㅇㅅㅅ 지시ㅁ >- is appears.)

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

This problem does not always occur, but only occasionally occurs in some documents.

Anything else we need to know?:

According to a user who experienced the problem, the local user cannot find this problem, there was no problem while writing the text in local, but the problem were found when accessing it again later.

Overall, a event handler in somewhere may be conditionally duplicated and sending change to the server twice.

Environment:

  • Operating system:
  • Browser and version:

This was fixed by yorkie-team/codepair@43d973a.