rollback broadcastQueryClient

still trying to figure out why cache becomes undefined sometimes
This commit is contained in:
cv
2021-04-24 18:28:12 +02:00
parent 682d3b4556
commit f1face2592
2 changed files with 7 additions and 0 deletions
+1
View File
@@ -4,6 +4,7 @@ const refetchIntervalMs = 10000;
export const useFetch = (namespace, fn) => {
const { data, status, isError, refetch } = useQuery(namespace, fn, {
refetchInterval: refetchIntervalMs,
cacheTime: refetchIntervalMs,
});
return { data, status, isError, refetch };