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

Function delExtraThingById

src/ui-solid/Provider.tsx:75–90  ·  view source on GitHub ↗
(thingOffset: Offsets, id: Id)

Source from the content-addressed store, hash-verified

73 };
74
75 const delExtraThingById = (thingOffset: Offsets, id: Id): void => {
76 setExtraThingsById((extraThingsById) =>
77 !objHas(extraThingsById[thingOffset], id)
78 ? extraThingsById
79 : (arrayWith(
80 extraThingsById,
81 thingOffset,
82 objDel(
83 extraThingsById[thingOffset] as IdObj<
84 ThingsByOffset[typeof thingOffset]
85 >,
86 id,
87 ),
88 ) as ExtraThingsById),
89 );
90 };
91
92 const contextValue = createMemo<ContextValue>(() => [
93 ...mergeParentThings(

Callers 2

useProvideThingFunction · 0.70
useProvideThingFunction · 0.50

Calls 3

objHasFunction · 0.90
arrayWithFunction · 0.90
objDelFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…