TinyBase logoTinyBase β

useResultTableCellIdsListener

The useResultTableCellIdsListener hook registers a listener that is called whenever the Cell Ids across a result Table change.

useResultTableCellIdsListener(
  queryId: MaybeGetter<IdOrNull>,
  listener: ResultTableCellIdsListener,
  queriesOrQueriesId?: MaybeGetter<undefined | QueriesOrQueriesId>,
): void
TypeDescription
queryIdMaybeGetter<IdOrNull>

The Id of the query to listen to, or null to listen to any query.

listenerResultTableCellIdsListener

The function to call when Cell Ids change.

queriesOrQueriesId?MaybeGetter<undefined | QueriesOrQueriesId>

The Queries object to use, or its Id.

returnsvoid

This has no return value.

Since

v8.1.0