| 2884 | }; |
| 2885 | const getMergeableValueHashes = () => mapToObj(contentStampMap[1][0], getStampHash); |
| 2886 | const getMergeableValueDiff = (otherValueHashes) => { |
| 2887 | const [, [valueStampMaps, valuesHlc]] = contentStampMap; |
| 2888 | const values = mapToObj( |
| 2889 | valueStampMaps, |
| 2890 | stampClone, |
| 2891 | ([, , hash], valueId) => hash == otherValueHashes?.[valueId] |
| 2892 | ); |
| 2893 | return stampNew(values, valuesHlc); |
| 2894 | }; |
| 2895 | const setMergeableContent = (mergeableContent) => disableListeningToRawStoreChanges( |
| 2896 | () => validateMergeableContent(mergeableContent) ? store.transaction(() => { |
| 2897 | store.delTables().delValues(); |