Dexie.currentTransaction
Syntax
Type
Transaction
Description
If accessed from within a transaction scope, this property will contain the current Transaction instance. If not within a transaction scope scope, this property will be null.
The property is a Promise-local data variable and requires you to be in a Dexie.Promise flow. If you're using other Promise implementations, Dexie.currentTransaction will always be null.