MCPcopy
hub / github.com/tinyplex/tinybase / useStore

Function useStore

src/ui-react/hooks.ts:625–626  ·  view source on GitHub ↗
(id?: Id)

Source from the content-addressed store, hash-verified

623 useThingIds(OFFSET_STORE);
624
625export const useStore: typeof useStoreDecl = (id?: Id): Store | undefined =>
626 useThing(id, OFFSET_STORE);
627
628export const useStores: typeof useStoresDecl = (): IdObj<Store> =>
629 useThings(OFFSET_STORE);

Callers 10

TestFunction · 0.90
ContextNestedChildFunction · 0.90
ProvidedThingsFunction · 0.90
StoreViewFunction · 0.90
BodyFunction · 0.90
GettersFunction · 0.50
GettersFunction · 0.50

Calls 1

useThingFunction · 0.90

Tested by 5

TestFunction · 0.72
ContextNestedChildFunction · 0.72
ProvidedThingsFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…