Fix deleted event handling in repository stores

This commit is contained in:
Jon Staab
2026-02-03 17:39:00 -08:00
parent c5f3681739
commit debc3080c3
3 changed files with 22 additions and 11 deletions
+3 -1
View File
@@ -1,5 +1,5 @@
import {get, derived, Readable, Unsubscriber, Writable, Subscriber} from "svelte/store"
import {memoize, equals, throttle} from "@welshman/lib"
import {memoize, identity, equals, throttle} from "@welshman/lib"
// Define Stores and StoresValues types locally since they're not exported in Svelte 5
type Stores = Readable<any> | [Readable<any>, ...Array<Readable<any>>] | Array<Readable<any>>
@@ -109,3 +109,5 @@ export const deriveDeduplicatedByValue = <S extends Stores, T>(
}
})
}
export const merged = <S extends Stores>(stores: S) => derived(stores, identity)