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

Function useCreateStore

src/ui-react/hooks.ts:616–620  ·  view source on GitHub ↗
(
  create: () => Store,
  createDeps: DependencyList = EMPTY_ARRAY,
  // eslint-disable-next-line react-hooks/exhaustive-deps
)

Source from the content-addressed store, hash-verified

614// ---
615
616export const useCreateStore: typeof useCreateStoreDecl = (
617 create: () => Store,
618 createDeps: DependencyList = EMPTY_ARRAY,
619 // eslint-disable-next-line react-hooks/exhaustive-deps
620): Store => useMemo(create, createDeps);
621
622export const useStoreIds: typeof useStoreIdsDecl = () =>
623 useThingIds(OFFSET_STORE);

Callers 5

TestFunction · 0.90
ProvideStore2Function · 0.90
InspectorFunction · 0.90
GettersFunction · 0.50
GettersFunction · 0.50

Calls

no outgoing calls

Tested by 2

TestFunction · 0.72
ProvideStore2Function · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…