TinyBase logoTinyBase β

useTablesListener

The useTablesListener hook registers a listener that is called whenever tabular data in the Store changes.

useTablesListener(
  listener: TablesListener,
  mutator?: boolean,
  storeOrStoreId?: MaybeGetter<undefined | StoreOrStoreId>,
): void
TypeDescription
listenerTablesListener

The function to call when Tables 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