MCPcopy Index your code
hub / github.com/tinyplex/tinybase / setMergeableContent

Function setMergeableContent

src/mergeable-store/index.ts:632–643  ·  view source on GitHub ↗
(
    mergeableContent: MergeableContent,
  )

Source from the content-addressed store, hash-verified

630 };
631
632 const setMergeableContent = (
633 mergeableContent: MergeableContent,
634 ): MergeableStore =>
635 disableListeningToRawStoreChanges(() =>
636 validateMergeableContent(mergeableContent)
637 ? store.transaction(() => {
638 store.delTables().delValues();
639 contentStampMap = newContentStampMap();
640 store.applyChanges(mergeContentOrChanges(mergeableContent, 1));
641 })
642 : 0,
643 );
644
645 const setDefaultContent = (
646 content: Content | (() => Content),

Callers

nothing calls this directly

Calls 8

validateMergeableContentFunction · 0.70
newContentStampMapFunction · 0.70
mergeContentOrChangesFunction · 0.70
transactionMethod · 0.65
delValuesMethod · 0.65
delTablesMethod · 0.65
applyChangesMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…