Browse Source

feat(crons): Refetch monitor details on window focus (#58100)

Evan Purkhiser 1 year ago
parent
commit
f4b4142a6b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      static/app/views/monitors/details.tsx

+ 1 - 0
static/app/views/monitors/details.tsx

@@ -48,6 +48,7 @@ function MonitorDetails({params, location}: Props) {
 
   const {data: monitor} = useApiQuery<Monitor>(queryKey, {
     staleTime: 0,
+    refetchOnWindowFocus: true,
     // Refetches while we are waiting for the user to send their first check-in
     refetchInterval: data => {
       if (!data) {