Clean up store semantics

This commit is contained in:
Jon Staab
2026-06-18 08:25:23 -07:00
parent f5124a6c4e
commit aae201414d
20 changed files with 187 additions and 227 deletions
+2 -2
View File
@@ -7,7 +7,7 @@ import {
removeFromList,
} from "@welshman/util"
import type {TrustedEvent} from "@welshman/util"
import {Collection} from "./collection.js"
import {DerivedData} from "./clientData.js"
import {Network} from "./network.js"
import {Thunks} from "./thunk.js"
import {User} from "./user.js"
@@ -17,7 +17,7 @@ import type {IClient} from "./client.js"
* NIP-51 pin lists (kind 10001), keyed by pubkey. Loaded via the outbox model
* (the author's write relays), so it depends on the relay-list collection.
*/
export class PinLists extends Collection<ReturnType<typeof readList>> {
export class PinLists extends DerivedData<ReturnType<typeof readList>> {
constructor(ctx: IClient) {
super(ctx, {
filters: [{kinds: [PINS]}],