TinyBase logoTinyBase β

useResultTableCellIds

The useResultTableCellIds hook returns a reactive object reflecting the Ids of all Cells used across a result Table, and registers a listener so that any changes will update .current.

useResultTableCellIds(
  queryId: MaybeGetter<string>,
  queriesOrQueriesId?: MaybeGetter<undefined | QueriesOrQueriesId>,
): {current: Ids}
TypeDescription
queryIdMaybeGetter<string>

The Id of the Query (or a getter returning it).

queriesOrQueriesId?MaybeGetter<undefined | QueriesOrQueriesId>

The Queries object to use (plain or getter), or its Id.

returns{current: Ids}

A reactive object with a current Ids property.

Since

v8.1.0