-
-
Notifications
You must be signed in to change notification settings - Fork 664
Dexie.currentTransaction
David Fahlander edited this page Apr 22, 2016
·
7 revisions
var trans = Dexie.currentTransaction;
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.
Dexie.js - minimalistic and bullet proof indexedDB library