diff --git a/package-lock.json b/package-lock.json index 612eb08..0269674 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "owls-ui", - "version": "3.0.0(3)", + "version": "3.0.0(4)", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "owls-ui", - "version": "3.0.0(3)", + "version": "3.0.0(4)", "license": "BSD-3-Clause", "dependencies": { "@chakra-ui/icons": "^2.0.18", diff --git a/package.json b/package.json index a3d58d1..c44590b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "owls-ui", - "version": "3.0.0(3)", + "version": "3.0.0(4)", "description": "", "private": true, "main": "index.tsx", diff --git a/src/hooks/Network/Simulations.ts b/src/hooks/Network/Simulations.ts index 8cf2e54..1002bd6 100644 --- a/src/hooks/Network/Simulations.ts +++ b/src/hooks/Network/Simulations.ts @@ -130,7 +130,8 @@ const getSimulationsStatus = async () => export const useGetSimulationsStatus = () => useQuery(['simulations', 'status'], getSimulationsStatus, { keepPreviousData: true, - staleTime: Infinity, + staleTime: 1000 * 10, + refetchInterval: 1000 * 10, }); const getSimulationStatus = async (context: QueryFunctionContext<[string, string, string]>) =>