handle implementations should be able to run assuming no other locks to the document are held. This means we need to collect a vec of patches before passing them one by one to the handler code, instead of doing it inside the merge_fragment_json function, otherwise this potentially locks the client.
previously this would have just mutated the document while iterating.
handle
implementations should be able to run assuming no other locks to the document are held. This means we need to collect a vec of patches before passing them one by one to the handler code, instead of doing it inside themerge_fragment_json
function, otherwise this potentially locks the client.previously this would have just mutated the document while iterating.