You can set the options
{ ..., staleTime: Infinity cacheTime: Infinity, ... }
This options will prevent useQuery from refetching.