fix(maps): stop delivering settled state to detached subscribers

This commit is contained in:
Rudy Celekli committed 2026-10-14 20:12:42 -04:00
1 parent 0265ad4c19
commit 5889d35327
4 files changed
+62

No files matched your search

+1
View File
@@ -142,6 +142,7 @@ export class MapSourceController {
if (this._destroyed || !this._subscribers.size) return;
const state = this.getState();
for (const listener of [...this._subscribers]) {
if (this._destroyed || !this._subscribers.has(listener)) continue;
try {
listener(state);
} catch (error) {