useHasTablesListener
The useHasTablesListener hook registers a listener that is called whenever any Tables are added to or removed from the Store. The listener is tied to the component's $effect lifecycle and is removed when the component unmounts.
useHasTablesListener(
listener: HasTablesListener,
mutator?: boolean,
storeOrStoreId?: MaybeGetter<undefined | StoreOrStoreId>,
): void| Type | Description | |
|---|---|---|
listener | HasTablesListener | The function to call when table presence changes. |
mutator? | boolean | An optional boolean indicating the listener mutates |
storeOrStoreId? | MaybeGetter<undefined | StoreOrStoreId> | |
| returns | void | This has no return value. |
Since
v8.1.0