feat: follow button

This commit is contained in:
codytseng 2024-11-11 23:24:35 +08:00
parent d5b941535f
commit 3f9042b3be
7 changed files with 179 additions and 55 deletions

View file

@ -125,6 +125,10 @@ class ClientService {
return this.eventCache.fetch(JSON.stringify({ ...filter, limit: 1 }))
}
deleteEventCacheByFilter(filter: Filter) {
this.eventCache.delete(JSON.stringify({ ...filter, limit: 1 }))
}
async fetchEventById(id: string): Promise<NEvent | undefined> {
return this.eventDataloader.load(id)
}