From 4e48d1d66eedc6f9ff4e41419ee27c3b14baf052 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Tue, 19 Dec 2023 12:27:26 +0100 Subject: [PATCH] Avoid multiple reloads --- packages/client/src/api/api.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/client/src/api/api.js b/packages/client/src/api/api.js index ee33b1dbe0..c5a1cd2775 100644 --- a/packages/client/src/api/api.js +++ b/packages/client/src/api/api.js @@ -78,7 +78,9 @@ export const API = createAPIClient({ console.warn(`[Client] HTTP ${status} on ${method}:${url}\n\t${message}`) }, onMigrationDetected: appId => { - // We will force a reload, that will display the updating screen until the migration is running - window.location.reload() + if (!window.MIGRATING_APP) { + // We will force a reload, that will display the updating screen until the migration is running + window.location.reload() + } }, })