My recommendation is to wait for the initial content to be synced before rendering the editor content. If you are using y-websocket, you could do:
provider.on('synced', () => {
// you received the initial content (e.g. the empty paragraph) from the other peers
})
Does that work for you?