Skip to content

Commit f5f6f55

Browse files
committed
Disable refetchOnWindowFocus for test runs query
Previously, the 'Refresh logs' button was triggering a loading state on mount, since the step gets focused and the query gets triggered. We don't need to refetch on window focus, in order to rely on the refresh logs button only + the current internal polling mechanism.
1 parent 95bcd4c commit f5f6f55

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/shared/src/react/hooks/useEnterpriseConnectionTestRuns.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ function useEnterpriseConnectionTestRuns(
104104
},
105105
enabled: queryEnabled,
106106
refetchIntervalInBackground: false,
107+
refetchOnWindowFocus: false,
107108
});
108109

109110
const hasRows = (query.data?.data?.length ?? 0) > 0;

0 commit comments

Comments
 (0)