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

Function useStoreOrStoreById

src/ui-solid/primitives.ts:463–466  ·  view source on GitHub ↗
(
  storeOrStoreId?: MaybeAccessor<StoreOrStoreId | undefined>,
)

Source from the content-addressed store, hash-verified

461export const useStores = (): Accessor<IdObj<Store>> => useThings(OFFSET_STORE);
462
463export const useStoreOrStoreById = (
464 storeOrStoreId?: MaybeAccessor<StoreOrStoreId | undefined>,
465): Accessor<Store | undefined> =>
466 useThingOrThingById(storeOrStoreId, OFFSET_STORE);
467
468export const useProvideStore = (storeId: Id, store: Store): void =>
469 useProvideThing(storeId, store, OFFSET_STORE);

Callers 15

useHasTableCallbackFunction · 0.90
useHasRowCallbackFunction · 0.90
useHasValueCallbackFunction · 0.90
CloneTableFunction · 0.90
AddCellFunction · 0.90
CloneRowFunction · 0.90
EditableCellViewFunction · 0.90
EditableValueViewFunction · 0.90
useStoreSetCallbackFunction · 0.70
useDelFunction · 0.70
useSortedRowIdsImplFunction · 0.70

Calls 1

useThingOrThingByIdFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…