Skip to content

Commit

Permalink
Add polling to eventCycles (#510)
Browse files Browse the repository at this point in the history
  • Loading branch information
camilovegag authored May 17, 2024
1 parent ec56a3e commit e563fb2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/berlin/src/pages/Event.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ function Event() {
queryKey: ['events', eventId, 'cycles'],
queryFn: () => fetchEventCycles(eventId || ''),
enabled: !!eventId,
refetchInterval: 5000, // Poll every 5 seconds
});

const openCycles = useMemo(
Expand Down

0 comments on commit e563fb2

Please sign in to comment.