diff --git a/src/nostr/useBatchedEvents.ts b/src/nostr/useBatchedEvents.ts index dba4487..1b29c36 100644 --- a/src/nostr/useBatchedEvents.ts +++ b/src/nostr/useBatchedEvents.ts @@ -137,7 +137,7 @@ const { addTask, removeTask } = useBatch(() => ({ const resolveTasks = (registeredTasks: BatchedEventsTask[], event: NostrEvent) => { registeredTasks.forEach((task) => { - task.updateWith((current) => [...(current ?? []), event]); + task.addEvent(event); }); }; diff --git a/src/nostr/useFollowings.ts b/src/nostr/useFollowings.ts index 9428ea7..3103fdb 100644 --- a/src/nostr/useFollowings.ts +++ b/src/nostr/useFollowings.ts @@ -50,7 +50,7 @@ const useFollowings = (propsProvider: () => UseFollowingsProps | null): UseFollo { staleTime: 5 * 60 * 1000, // 5 min cacheTime: 24 * 60 * 60 * 1000, // 24 hour - refetchOnMount: true, + refetchOnMount: false, refetchOnWindowFocus: false, refetchOnReconnect: false, refetchInterval: 0,