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

Function useSetTablesCallback

src/ui-solid/primitives.ts:743–748  ·  view source on GitHub ↗
(
  getTables: (parameter: Parameter, store: Store) => Tables,
  storeOrStoreId?: MaybeAccessor<StoreOrStoreId | undefined>,
  then?: (store: Store, tables: Tables) => void,
)

Source from the content-addressed store, hash-verified

741];
742
743export const useSetTablesCallback = <Parameter>(
744 getTables: (parameter: Parameter, store: Store) => Tables,
745 storeOrStoreId?: MaybeAccessor<StoreOrStoreId | undefined>,
746 then?: (store: Store, tables: Tables) => void,
747): ParameterizedCallback<Parameter> =>
748 useStoreSetCallback(storeOrStoreId, TABLES, getTables, then);
749
750export const useSetTableCallback = <Parameter>(
751 tableId: MaybeAccessor<Id> | GetId<Parameter>,

Callers 3

WriterFunction · 0.90
primitives.test.tsFile · 0.90
useTablesStateFunction · 0.70

Calls 1

useStoreSetCallbackFunction · 0.70

Tested by 1

WriterFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…