Skip to content

Commit d757016

Browse files
committed
update comment
1 parent 4aa0d40 commit d757016

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

  • lib/storage/providers/IDBKeyValProvider

lib/storage/providers/IDBKeyValProvider/index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ const STORE_NAME = 'keyvaluepairs';
1313
* Awaits an IndexedDB write transaction. idb-keyval's promisifyRequest rejects with
1414
* `transaction.error`, which is `null` for an abort not caused by its own request
1515
* (connection close / versionchange / a sibling transaction aborting). Normalize that
16-
* `null` into a tagged AbortError so storage writes never reject with the unclassifiable
17-
* "Error: null" — it otherwise slips past createStore's heal guards (they require an
18-
* Error/DOMException) and renders as `Error: null` in OnyxUtils.retryOperation.
16+
* `null` into a tagged AbortError.
1917
*/
2018
function promisifyWriteTransaction(transaction: IDBTransaction): Promise<void> {
2119
return IDB.promisifyRequest(transaction).catch((error) => {

0 commit comments

Comments
 (0)