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

Function getThing

src/ui-solid/primitives.ts:216–217  ·  view source on GitHub ↗
(thing: MaybeAccessor<Thing>)

Source from the content-addressed store, hash-verified

214const isEqual = (thing1: any, thing2: any) => thing1 === thing2;
215
216const getThing = <Thing>(thing: MaybeAccessor<Thing>): Thing =>
217 (isFunction(thing) ? (thing as Accessor<Thing>)() : thing) as Thing;
218
219type MaybeRelationshipsOrRelationshipsId = MaybeAccessor<
220 RelationshipsOrRelationshipsId | undefined

Callers 15

useCreateFunction · 0.70
getResultFunction · 0.70
useListenableFunction · 0.70
useListenerFunction · 0.70
useSetCallbackFunction · 0.70
argsOrGetArgsFunction · 0.70
useDelFunction · 0.70
useCheckpointActionFunction · 0.70
useAddRowCallbackFunction · 0.70
useSetCheckpointCallbackFunction · 0.70
useGoToCallbackFunction · 0.70
useUndoInformationFunction · 0.70

Calls 1

isFunctionFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…