fix(maps): settle failed recovery and update registry QA

This commit is contained in:
Sameh Khamis committed 2026-09-13 19:01:23 -07:00
1 parent 06c73bca98
commit 8024813792
4 files changed
+145 -300

No files matched your search

+9 -3
View File
@@ -124,9 +124,15 @@ export class MapSourceController {
recovery.id !== stack.id &&
this.isStackAvailable(recovery.id)
) {
await this._activate(recovery, gen);
if (gen !== this._switchGen) return this.getState();
this._activeId = recovery.id;
try {
const activation = await this._activate(recovery, gen);
if (gen !== this._switchGen) return this.getState();
this._activeId = activation?.effectiveStackId || recovery.id;
} catch (recoveryError) {
if (gen !== this._switchGen) return this.getState();
this._lastError = recoveryError?.message || String(recoveryError);
this._onError?.(this._lastError, recovery);
}
}
if (!silent) this._emitChange('error');
} finally {