diff --git a/frontend/console/src/api/timeline/use-timeline.ts b/frontend/console/src/api/timeline/use-timeline.ts index 04c5853374..39e839f671 100644 --- a/frontend/console/src/api/timeline/use-timeline.ts +++ b/frontend/console/src/api/timeline/use-timeline.ts @@ -37,6 +37,10 @@ export const useTimeline = (isStreaming: boolean, filters: EventsQuery_Filter[], try { console.debug('streaming timeline') console.debug('timeline-filters:', filters) + + // Clear the cache when starting a new stream + queryClient.setQueryData(queryKey, (_ = []) => []) + for await (const response of client.streamEvents( { updateInterval: { seconds: BigInt(0), nanos: updateIntervalMs * 1000 }, query: { limit, filters, order } }, { signal },