TinyBase logoTinyBase β

onTableIds

The onTableIds function registers a listener that is called whenever the set of Table Ids in the Store changes.

onTableIds(
  listener: TableIdsListener,
  mutator?: boolean,
  storeOrStoreId?: MaybeGetter<undefined | StoreOrStoreId>,
): void
TypeDescription
listenerTableIdsListener

The function to call when Table Ids change.

mutator?boolean

An optional boolean indicating the listener mutates Store data.

storeOrStoreId?MaybeGetter<undefined | StoreOrStoreId>

The Store to use, or its Id.

returnsvoid

This has no return value.

Since

v8.1.0