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

@ -7,6 +7,7 @@
import Icon from "../../Map/Icon.svelte"
import NoteCommentElement from "./NoteCommentElement"
import { Translation } from "../../i18n/Translation"
import { onDestroy } from "svelte"
const t = Translations.t.notes
export let state: SpecialVisualizationState
@ -19,7 +20,7 @@
export let zoomMoreMessage: string
let curZoom = state.mapProperties.zoom
const isClosed = tags.map((tags) => (tags["closed_at"] ?? "") !== "")
const isClosed = tags.map((tags) => (tags["closed_at"] ?? "") !== "", onDestroy)
async function closeNote() {
const id = tags.data[idkey]