Merging 2 docs with different histories (excluding Text/Array)

@dmonad Kevin Jahns
Wed, 12 Nov 2025 12:38:09 +0000

You can merge any two ydocs and will always end up with the same content on all peers. However, in most cases you won’t get the “intended” results. The merge is just random (one of the properties will overwrite the other one).

It would be better to diff and apply the differences, if you want to ensure that a certain set of changes “wins”.