useWillFinishTransactionListener
The useWillFinishTransactionListener hook registers a listener called just before a Store transaction completes.
useWillFinishTransactionListener(
listener: TransactionListener,
storeOrStoreId?: MaybeGetter<undefined | StoreOrStoreId>,
): void| Type | Description | |
|---|---|---|
listener | TransactionListener | The function to call before transaction end. |
storeOrStoreId? | MaybeGetter<undefined | StoreOrStoreId> | |
| returns | void | This has no return value. |
Since
v8.1.0