fix: fetch in offline environments (#295)

This commit is contained in:
Carlos Valente
2023-02-23 21:41:05 +01:00
committed by GitHub
parent 2021d9394d
commit 0ff6556e4d
5 changed files with 11 additions and 2 deletions
+1
View File
@@ -11,6 +11,7 @@ export const useFetch = (namespace, fn) => {
const { data, status, isError, refetch } = useQuery(namespace, fn, {
refetchInterval: refetchIntervalMs,
cacheTime: Infinity,
networkMode: 'always',
});
return { data, status, isError, refetch };