Skip to content

Commit 1ee4f72

Browse files
committed
disable refetch too
1 parent 33b8e19 commit 1ee4f72

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

site/src/api/queries/buildInfo.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,8 @@ export const buildInfo = (): UseQueryOptions<BuildInfoResponse> => {
1414
// The version of the app can't change without reloading the page.
1515
cacheTime: Infinity,
1616
staleTime: Infinity,
17+
refetchOnMount: false,
18+
refetchOnReconnect: false,
19+
refetchOnWindowFocus: false,
1720
};
1821
};

0 commit comments

Comments
 (0)