crdt-example-app icon indicating copy to clipboard operation
crdt-example-app copied to clipboard

The order of the added messages is different in 2 application instances

Open pgmemk opened this issue 4 years ago • 0 comments

The sync doesn't work correctly for this case:

  • opened this application in 2 different browser tabs.
  • typed and submitted h1 in the right tab - 1st snapshot
  • typed and submitted h2 in the left tab - 1st snapshot (both messages nicely synced in the left tab)
  • clicked on Sync in the right tab
  • the order of the messages is incorrect in the right tab - 2nd snapshot

image

image

The sync works nicely if you explicitly press Sync button on every submission. To be more precise, you type message in one tab and press Sync button in the other tab before typing a new message in this other tab.

pgmemk avatar Oct 05 '20 19:10 pgmemk