Update 6-data-storage/03-indexeddb/article.md
Co-authored-by: Muhammed Zakir <8190126+MuhammedZakir@users.noreply.github.com>
This commit is contained in:
parent
d56c49ee48
commit
172ef78b47
1 changed files with 1 additions and 1 deletions
|
@ -343,7 +343,7 @@ So, in the example above no special call is needed to finish the transaction.
|
||||||
|
|
||||||
Transactions auto-commit principle has an important side effect. We can't insert an async operation like `fetch`, `setTimeout` in the middle of transaction. IndexedDB will not keep the transaction waiting till these are done.
|
Transactions auto-commit principle has an important side effect. We can't insert an async operation like `fetch`, `setTimeout` in the middle of transaction. IndexedDB will not keep the transaction waiting till these are done.
|
||||||
|
|
||||||
In the code below `request2` in line `(*)` fails, because the transaction is already committed, and can't make any request in it:
|
In the code below, `request2` in line `(*)` fails, because the transaction is already committed, and can't make any request in it:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
let request1 = books.add(book);
|
let request1 = books.add(book);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue