TinyBase

StoreListenerStats

The StoreListenerStats type describes the number of listeners registered with the Store, and can be used for debugging purposes.

{
  tables?: number;
  tableIds?: number;
  table?: number;
  rowIds?: number;
  sortedRowIds?: number;
  row?: number;
  cellIds?: number;
  cell?: number;
  invalidCell?: number;
  transaction?: number;
}
TypeDescription
tables?number

The number of TablesListener functions registered with the Store.

tableIds?number

The number of TableIdsListener functions registered with the Store.

table?number

The number of TableListener functions registered with the Store.

rowIds?number

The number of RowIdsListener functions registered with the Store.

sortedRowIds?number

The number of SortedRowIdsListener functions registered with the Store.

row?number

The number of RowListener functions registered with the Store.

cellIds?number

The number of CellIdsListener functions registered with the Store.

cell?number

The number of CellListener functions registered with the Store.

invalidCell?number

The number of InvalidCellListener functions registered with the Store.

transaction?number

The number of TransactionListener functions registered with the Store.

The StoreListenerStats object contains a breakdown of the different types of listener. Totals include both mutator and non-mutator listeners. A StoreListenerStats object is returned from the getListenerStats method, and is only populated in a debug build.