MCPcopy Create free account
hub / github.com/tinyplex/tinybase / useSetCallback

Function useSetCallback

docs/pseudo.esm.sh/tinybase@9.0.0/ui-solid-dom/index.js:502–514  ·  view source on GitHub ↗
(storeOrQueries, settable, get, then = getUndefined, methodPrefix, ...args)

Source from the content-addressed store, hash-verified

500 return result;
501};
502var useSetCallback = (storeOrQueries, settable, get, then = getUndefined, methodPrefix, ...args) => (parameter) => ifNotUndefined2(
503 getThing2(storeOrQueries),
504 (obj) => ifNotUndefined2(
505 get(parameter, obj),
506 (thing) => then(
507 obj[methodPrefix + settable](
508 ...argsOrGetArgs(args, obj, parameter),
509 thing
510 ),
511 thing
512 )
513 )
514);
515var useStoreSetCallback = (storeOrStoreId, settable, get, then, ...args) => useSetCallback(
516 useStoreOrStoreById2(storeOrStoreId),
517 settable,

Callers 1

useStoreSetCallbackFunction · 0.70

Calls 2

getThing2Function · 0.70
argsOrGetArgsFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…