forked from MapComplete/MapComplete
Performance: sprinkle 'onDestroy' everywhere to cleanup old stores; cleanup 'Stores' utility class
This commit is contained in:
parent
66f093afd8
commit
81be4db044
79 changed files with 332 additions and 325 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue