Raw IndexedDB code tends to become kind of callback hell. After Firefox implemented correctly the microtask/promise interaction (i.e. the ability to resolve a promise and have its callbacks run before the transaction auto-commits) it's possible to write the same code with async/await, which is much more maintainable.
Raw IndexedDB code tends to become kind of callback hell. After Firefox implemented correctly the microtask/promise interaction (i.e. the ability to resolve a promise and have its callbacks run before the transaction auto-commits) it's possible to write the same code with
async
/await
, which is much more maintainable.