Skip to content

Commit 5177410

Browse files
scttcperandrewshie-sentry
authored andcommitted
fix(sidebar): Refresh statuspage.io every 10 minutes (#91827)
1 parent cc14236 commit 5177410

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

static/app/utils/useServiceIncidents.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ export function useServiceIncidents({
3030

3131
return useQuery<StatuspageIncident[] | null>({
3232
queryKey: ['statuspage-incidents', {api_host, id, includeResolved}],
33-
gcTime: 60 * 5,
3433
queryFn: async () => {
3534
if (!api_host || !id) {
3635
return null;
@@ -74,5 +73,7 @@ export function useServiceIncidents({
7473

7574
return filteredIncidents;
7675
},
76+
// Refetch every 10 minutes
77+
refetchInterval: 1000 * 60 * 10,
7778
});
7879
}

0 commit comments

Comments
 (0)