From 0cb26750b4b258dce1e0f2cb081e7c14ef089c23 Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Fri, 8 Dec 2023 18:45:53 +0000 Subject: [PATCH] feat: Updated convertPheno_client/src/code/views/c --- .../src/code/views/conversion/hooks/finishedJobs.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/convertPheno_client/src/code/views/conversion/hooks/finishedJobs.jsx b/convertPheno_client/src/code/views/conversion/hooks/finishedJobs.jsx index 4d18e69c..a1056cf7 100644 --- a/convertPheno_client/src/code/views/conversion/hooks/finishedJobs.jsx +++ b/convertPheno_client/src/code/views/conversion/hooks/finishedJobs.jsx @@ -10,7 +10,7 @@ License: GPL-3.0 license */ -import { useQuery } from "@tanstack/react-query"; +import { useQuery } from "react-query"; import apiRequest from "../../../ApiRequest"; export default function useFinishedJobs(props) { @@ -34,6 +34,8 @@ export default function useFinishedJobs(props) { cacheTime: 200, staleTime: 300_000, onSuccess: (data) => {}, + refetchOnWindowFocus: false, + refetchOnReconnect: false } ); }