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

Function useThings

docs/pseudo.esm.sh/tinybase@9.0.0/ui-react/index.js:130–130  ·  view source on GitHub ↗
(offset)

Source from the content-addressed store, hash-verified

128 return isUndefined(id) ? contextValue[offset * 2] : isString(id) ? objGet(contextValue[offset * 2 + 1], id) : id;
129};
130var useThings = (offset) => ({ ...useContext(Context)[offset * 2 + 1] });
131var useThingOrThingById = (thingOrThingId, offset) => {
132 const thing = useThing(thingOrThingId, offset);
133 return isUndefined(thingOrThingId) || isString(thingOrThingId) ? thing : thingOrThingId;

Callers 1

useStoresFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…