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

Function onRow

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

Source from the content-addressed store, hash-verified

1152 );
1153
1154export const onRow = (
1155 tableId: MaybeGetter<IdOrNull>,
1156 rowId: MaybeGetter<IdOrNull>,
1157 listener: RowListener,
1158 mutator?: boolean,
1159 storeOrStoreId?: MaybeGetter<Store | Id | undefined>,
1160): void =>
1161 addListenerEffect(
1162 resolveStore(storeOrStoreId),
1163 ROW,
1164 listener,
1165 () => [maybeGet(tableId), maybeGet(rowId)],
1166 mutator,
1167 );
1168
1169export const onCellIds = (
1170 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…