Random, rare data loss in production with y-prosemirror

@fuadsaud Fuad Saud
Thu, 02 Oct 2025 22:25:58 +0000

I have been investigating some data loss cases recently and noticed an interesting pattern:

users report data loss after navigating away from the editor page

looking back at application logs, I couldn’t see any activity derived from yjs’s update events, as if they had not been fired

I could also see that the data was not being saved to indexed db—we use the update event to save data

I could see that the data would sync roughly every 30 minutes, which is when we “force” a sync with the server—due to our access tokens lasting for 30 minutes, so we refresh and reconnect. In this case, we don’t rely on the update event

I still haven’t gotten to the bottom of it, but thought it would be worth sharing. @dmonad if you have any suggestions on what could be causing this or any investigation paths I could take, let me know.