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

Function setThing

src/common/definable.ts:82–83  ·  view source on GitHub ↗
(id: Id, thing: Thing | undefined)

Source from the content-addressed store, hash-verified

80 const getThing = (id: Id): Thing | undefined => mapGet(things, id);
81
82 const setThing = (id: Id, thing: Thing | undefined): IdMap<Thing> =>
83 mapSet(things, id, thing) as IdMap<Thing>;
84
85 const addStoreListeners = (id: Id, ...listenerIds: Ids): void => {
86 const set = mapEnsure(storeListenerIds, id, setNew);

Callers 2

useCreateFunction · 0.50
useCreateFunction · 0.50

Calls 1

mapSetFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…