Switch checked from indexedb to localstorage

This commit is contained in:
Jon Staab
2024-12-16 11:55:47 -08:00
parent fd846d41ea
commit 3b202b31cb
2 changed files with 3 additions and 4 deletions
+3 -2
View File
@@ -1,4 +1,5 @@
import {writable, derived} from "svelte/store"
import {derived} from "svelte/store"
import {synced} from "@welshman/store"
import {pubkey} from "@welshman/app"
import {prop, sortBy, now} from "@welshman/lib"
import type {TrustedEvent} from "@welshman/util"
@@ -15,7 +16,7 @@ import {
// Checked state
export const checked = writable<Record<string, number>>({})
export const checked = synced<Record<string, number>>("checked", {})
export const deriveChecked = (key: string) => derived(checked, prop(key))