File tree Expand file tree Collapse file tree
lib/storage/providers/IDBKeyValProvider Expand file tree Collapse file tree Original file line number Diff line number Diff 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 */
2018function promisifyWriteTransaction ( transaction : IDBTransaction ) : Promise < void > {
2119 return IDB . promisifyRequest ( transaction ) . catch ( ( error ) => {
You can’t perform that action at this time.
0 commit comments