YJS document / map emptied in some exceptional situations

I’m using y-websocket and y-indexeddb.