Implement custom throttle function for performance

This commit is contained in:
Jon Staab
2024-12-11 16:41:31 -08:00
parent ab0517e804
commit 0fcb2482d8
12 changed files with 68 additions and 34 deletions
+1 -2
View File
@@ -1,9 +1,8 @@
import {openDB, deleteDB} from "idb"
import type {IDBPDatabase} from "idb"
import {throttle} from "throttle-debounce"
import {writable} from "svelte/store"
import type {Unsubscriber, Writable} from "svelte/store"
import {indexBy, fromPairs} from "@welshman/lib"
import {indexBy, throttle, fromPairs} from "@welshman/lib"
import type {TrustedEvent, Repository} from "@welshman/util"
import type {Tracker} from "@welshman/net"
import {withGetter, adapter, throttled, custom} from "@welshman/store"