TinyBase logoTinyBase

HasTableListener

The HasTableListener type describes a function that is used to listen to a Table being added to or removed from the Store.

(
  store: Store,
  tableId: Id,
  hasTable: boolean,
): void
TypeDescription
storeStore

A reference to the Store that changed.

tableIdId

The Id of the Table that changed.

hasTableboolean

Whether the Table now exists or not.

returnsvoid

This has no return value.

A HasTableListener is provided when using the addHasTableListener method. See that method for specific examples.

When called, a HasTableListener is given a reference to the Store, and the Id of the Table that changed. It is also given a flag to indicate whether the Table now exists (having not done previously), or does not (having done so previously).

Since

v4.4.0