From f9a692902b8acf65d18817803f9a6a4fca56c80a Mon Sep 17 00:00:00 2001 From: andrepimenta Date: Fri, 1 Oct 2021 12:58:45 +0100 Subject: [PATCH] Change timeout --- app/store/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/store/index.js b/app/store/index.js index e11f3097590..9e7277a825b 100644 --- a/app/store/index.js +++ b/app/store/index.js @@ -7,6 +7,8 @@ import rootReducer from '../reducers'; import { migrations, version } from './migrations'; import Logger from '../util/Logger'; +const TIMEOUT = 40000; + const MigratedStorage = { async getItem(key) { try { @@ -50,7 +52,7 @@ const persistConfig = { storage: MigratedStorage, stateReconciler: autoMergeLevel2, // see "Merge Process" section for details. migrate: createMigrate(migrations, { debug: false }), - timeout: 30000, + timeout: TIMEOUT, writeFailHandler: (error) => Logger.error(error, { message: 'Error persisting data' }), // Log error if saving state fails };