Troubleshooting Y.applyUpdate (not doing anything)

Hi everyone,

Quick update from my end, I’ve been able to make it work (thanks to your pointers) :tada:

There were two issues:

  • the Yjs document was always out of sync because there were some default values added to the doc
  • I was not applying the updates in the correct order (it was kind of random)

Now, it works well 99% of the time. There are still some weird cases where the new updates in a doc won’t be replicated on reload or on other users screens. I’ll need to reproduce this case and investigate why, but I was wondering if there is a way to detect if an update is applied to a doc or skipped? That would help me a lot to add logs while I’m adding the feature as beta.

Thank you again!