MCPcopy Create free account
hub / github.com/tinyplex/tinybase / onRowCount

Function onRowCount

src/ui-svelte/functions.svelte.ts:1087–1099  ·  view source on GitHub ↗
(
  tableId: MaybeGetter<IdOrNull>,
  listener: RowCountListener,
  mutator?: boolean,
  storeOrStoreId?: MaybeGetter<Store | Id | undefined>,
)

Source from the content-addressed store, hash-verified

1085 );
1086
1087export const onRowCount = (
1088 tableId: MaybeGetter<IdOrNull>,
1089 listener: RowCountListener,
1090 mutator?: boolean,
1091 storeOrStoreId?: MaybeGetter<Store | Id | undefined>,
1092): void =>
1093 addListenerEffect(
1094 resolveStore(storeOrStoreId),
1095 ROW_COUNT,
1096 listener,
1097 () => [maybeGet(tableId)],
1098 mutator,
1099 );
1100
1101export const onRowIds = (
1102 tableId: MaybeGetter<IdOrNull>,

Callers 1

ListenersFunction · 0.50

Calls 3

addListenerEffectFunction · 0.70
resolveStoreFunction · 0.70
maybeGetFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…