MCPcopy Create free account
hub / github.com/tinyplex/tinybase / setPersisted

Function setPersisted

src/persisters/persister-browser/index.ts:42–45  ·  view source on GitHub ↗
(
    getContent: () => PersistedContent<PersistsType.StoreOrMergeableStore>,
  )

Source from the content-addressed store, hash-verified

40 > => jsonParseWithUndefined(storage.getItem(storageName) as string);
41
42 const setPersisted = async (
43 getContent: () => PersistedContent<PersistsType.StoreOrMergeableStore>,
44 ): Promise<void> =>
45 storage.setItem(storageName, jsonStringWithUndefined(getContent()));
46
47 const addPersisterListener = (
48 listener: PersisterListener<PersistsType.StoreOrMergeableStore>,

Callers

nothing calls this directly

Calls 3

jsonStringWithUndefinedFunction · 0.90
closeMethod · 0.80
getContentFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…