You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dfahlander
changed the title
Nested transactions fails if parent transaction don't execute any operation
Three-level nested transactions fails if root-level and first sub transaction don't execute any operations
May 7, 2015
Found the issue. It's because Dexie's virtual sub transactions behave in the same bad manner as indexedDB transactions do: They fire their 'complete' event if no operation takes place in the same tick without waiting for micro-tasks to finish. Ever since Dexie.Promise started to have it's own 'micro-task' enging (Dexie.Promise._rootExec()), our sub transaction suffer from the same issue that make IndexedDB incompatible with ES6 Promise implementation.
I also found another issue but that will be filed separately.
Having a solution for both of them and will commit them soon.
See https://groups.google.com/forum/#!msg/dexiejs/b-uj775GO98/mCc6yTGPC0EJ
jsfiddle: http://jsfiddle.net/mt5mqjLL/2/
The text was updated successfully, but these errors were encountered: