TinyBase logoTinyBase β

useTableCellIds

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

useTableCellIds(
  tableId: MaybeGetter<string>,
  storeOrStoreId?: MaybeGetter<undefined | StoreOrStoreId>,
): {current: Ids}
TypeDescription
tableIdMaybeGetter<string>

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

storeOrStoreId?MaybeGetter<undefined | StoreOrStoreId>

The Store to use (plain value or getter), or its Id.

returns{current: Ids}

A reactive object with a current Ids property.

Since

v8.1.0