TinyBase logoTinyBase β

useWillFinishTransactionListener

The useWillFinishTransactionListener hook registers a listener called just before a Store transaction completes.

useWillFinishTransactionListener(
  listener: TransactionListener,
  storeOrStoreId?: MaybeGetter<undefined | StoreOrStoreId>,
): void
TypeDescription
listenerTransactionListener

The function to call before transaction end.

storeOrStoreId?MaybeGetter<undefined | StoreOrStoreId>

The Store to use, or its Id.

returnsvoid

This has no return value.

Since

v8.1.0