react-native-onyx 3.0.117 → 3.0.118
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -31,6 +31,10 @@ function classifyIDBError(error) {
|
|
|
31
31
|
if (message.includes('internal error opening backing store')) {
|
|
32
32
|
return errors_1.StorageErrorClass.FATAL;
|
|
33
33
|
}
|
|
34
|
+
// Chromium persistence failure with no cause attached, recovered by a fresh connection.
|
|
35
|
+
if (name === 'unknownerror' && message === 'internal error.') {
|
|
36
|
+
return errors_1.StorageErrorClass.FATAL;
|
|
37
|
+
}
|
|
34
38
|
// Transient connection/transport failures — the cached connection is stale and a reopen fixes it:
|
|
35
39
|
// - InvalidStateError: connection closed between getDB() resolving and db.transaction().
|
|
36
40
|
// - AbortError: write transaction aborted (connection close / versionchange / sibling abort).
|
|
@@ -209,6 +209,7 @@ function createStore(dbName, storeName) {
|
|
|
209
209
|
Logger.logInfo(`IDB heal: backing store error detected — dropping cached connection and reopening (${healAttemptsRemaining} attempts left)`, {
|
|
210
210
|
dbName,
|
|
211
211
|
storeName,
|
|
212
|
+
errorMessage: error instanceof Error ? error.message : String(error),
|
|
212
213
|
});
|
|
213
214
|
dbp = undefined;
|
|
214
215
|
return executeTransaction(txMode, callback).then((result) => {
|