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

Function useThings

src/ui-react/context.ts:88–91  ·  view source on GitHub ↗
(
  offset: Offsets,
)

Source from the content-addressed store, hash-verified

86};
87
88export const useThings = <UsedThing extends Thing>(
89 offset: Offsets,
90): IdObj<UsedThing> =>
91 ({...useContext(Context)[offset * 2 + 1]}) as IdObj<UsedThing>;
92
93export const useThingOrThingById = <T extends Thing>(
94 thingOrThingId: T | Id | undefined,

Callers 1

useStoresFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…