Improve loading a bit

This commit is contained in:
Jon Staab
2025-04-11 08:41:50 -07:00
parent 489707b9b2
commit acddff79f0
3 changed files with 15 additions and 19 deletions
+3 -5
View File
@@ -61,7 +61,7 @@ import {
walkThunks,
signer,
Router,
loadWithAsapMetaRelayUrls,
makeOutboxLoader,
routerContext,
appContext,
} from "@welshman/app"
@@ -332,8 +332,7 @@ export const {
name: "settings",
store: settings,
getKey: settings => settings.event.pubkey,
load: (pubkey: string, relays: string[]) =>
loadWithAsapMetaRelayUrls(pubkey, relays, [{kinds: [SETTINGS], authors: [pubkey]}]),
load: makeOutboxLoader([SETTINGS]),
})
// Alerts
@@ -410,8 +409,7 @@ export const {
name: "memberships",
store: memberships,
getKey: list => list.event.pubkey,
load: (pubkey: string, relays: string[]) =>
loadWithAsapMetaRelayUrls(pubkey, relays, [{kinds: [GROUPS], authors: [pubkey]}]),
load: makeOutboxLoader([GROUPS]),
})
// Chats