fix: 🐛
This commit is contained in:
@@ -17,7 +17,7 @@ export function useFetchRelayList(pubkey?: string | null) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fetchRelayList()
|
fetchRelayList()
|
||||||
}, [])
|
}, [pubkey])
|
||||||
|
|
||||||
return relayList
|
return relayList
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -126,7 +126,11 @@ class ClientService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
deleteEventCacheByFilter(filter: Filter) {
|
deleteEventCacheByFilter(filter: Filter) {
|
||||||
this.eventCache.delete(JSON.stringify({ ...filter, limit: 1 }))
|
try {
|
||||||
|
this.eventCache.delete(JSON.stringify({ ...filter, limit: 1 }))
|
||||||
|
} catch {
|
||||||
|
// ignore
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async fetchEventById(id: string): Promise<NEvent | undefined> {
|
async fetchEventById(id: string): Promise<NEvent | undefined> {
|
||||||
|
|||||||
Reference in New Issue
Block a user