Avoid multiple reloads
This commit is contained in:
parent
ee40434223
commit
4e48d1d66e
|
@ -78,7 +78,9 @@ export const API = createAPIClient({
|
||||||
console.warn(`[Client] HTTP ${status} on ${method}:${url}\n\t${message}`)
|
console.warn(`[Client] HTTP ${status} on ${method}:${url}\n\t${message}`)
|
||||||
},
|
},
|
||||||
onMigrationDetected: appId => {
|
onMigrationDetected: appId => {
|
||||||
// We will force a reload, that will display the updating screen until the migration is running
|
if (!window.MIGRATING_APP) {
|
||||||
window.location.reload()
|
// We will force a reload, that will display the updating screen until the migration is running
|
||||||
|
window.location.reload()
|
||||||
|
}
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue