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

Function updateResult

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

Source from the content-addressed store, hash-verified

260 (returnType == ReturnType.Boolean ? _HAS : GET) + listenable
261 ]?.(...getListenerArguments()) ?? DEFAULTS[returnType];
262 const updateResult = () => {
263 const nextResult = getResult();
264 const prevResult = untrack(result);
265 setResult(() =>
266 !(IS_EQUALS[returnType] ?? isEqual)(nextResult, prevResult)
267 ? nextResult
268 : prevResult,
269 );
270 };
271 createRenderEffect(() => {
272 const resolvedThing = getThing(thing);
273 const listenerArguments = getListenerArguments();

Callers 1

useListenableFunction · 0.70

Calls 1

getResultFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…