Skip to content

Commit a36a57c

Browse files
committed
fix: disable transcript polling since we use real-time IPC events
Removed refetchInterval from useTranscript query since we get real-time updates via IPC events from Recall.ai. Query still fetches once on mount for historical segments but doesn't continuously poll the backend.
1 parent 93ed3df commit a36a57c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/renderer/features/notetaker/hooks/useTranscript.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ export function useTranscript(recordingId: string | null) {
2727
return transcript as TranscriptData;
2828
},
2929
enabled: !!client && !!recordingId,
30-
refetchInterval: 5000, // Poll every 5s to get updates
31-
staleTime: 2000,
30+
refetchInterval: false, // Disabled: we get real-time updates via IPC events
31+
staleTime: Infinity, // Never consider stale since we update via IPC
3232
});
3333
}
3434

0 commit comments

Comments
 (0)