Performance: sprinkle 'onDestroy' everywhere to cleanup old stores; cleanup 'Stores' utility class

This commit is contained in:
Pieter Vander Vennet 2025-08-01 03:07:37 +02:00
parent 66f093afd8
commit 81be4db044
79 changed files with 332 additions and 325 deletions

View file

@ -8,6 +8,7 @@
import type { Feature } from "geojson"
import LayerConfig from "../../../Models/ThemeConfig/LayerConfig"
import EditButton from "../TagRendering/EditButton.svelte"
import { onDestroy } from "svelte"
export let key: string
export let tags: UIEventSource<Record<string, string>>
@ -34,7 +35,7 @@
}
}
return foundLanguages
})
}, onDestroy)
const forceInputMode = new UIEventSource(false)
</script>