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

Function useThings

src/ui-solid/context.ts:108–113  ·  view source on GitHub ↗
(
  offset: Offsets,
)

Source from the content-addressed store, hash-verified

106};
107
108export const useThings = <UsedThing extends Thing>(
109 offset: Offsets,
110): Accessor<IdObj<UsedThing>> => {
111 const contextValue = useContext(Context)?.value ?? EMPTY_CONTEXT;
112 return () => ({...contextValue()[offset * 2 + 1]}) as IdObj<UsedThing>;
113};
114
115export const useThingOrThingById = <
116 UsedThing extends

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…