MCPcopy
hub / github.com/tinyplex/tinybase / getResult

Function getResult

src/ui-solid/primitives.ts:258–261  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

256 const [result, setResult] = createSignal<any>(DEFAULTS[returnType]);
257 const getListenerArguments = () => arrayMap(listenerArgGetters, getThing);
258 const getResult = () =>
259 getThing(thing)?.[
260 (returnType == ReturnType.Boolean ? _HAS : GET) + listenable
261 ]?.(...getListenerArguments()) ?? DEFAULTS[returnType];
262 const updateResult = () => {
263 const nextResult = getResult();
264 const prevResult = untrack(result);

Callers 2

updateResultFunction · 0.70
ifTransformedFunction · 0.50

Calls 2

getThingFunction · 0.70
getListenerArgumentsFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…