1
0
Fork 0
mirror of synced 2024-10-04 03:54:37 +13:00

Handle migration when app loaded

This commit is contained in:
Adria Navarro 2023-12-19 12:24:10 +01:00
parent 94f0d38fe4
commit ee40434223

View file

@ -77,4 +77,8 @@ export const API = createAPIClient({
// Log all errors to console
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()
},
})