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
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue