queryClient.fetchQuery can be used in place of useQuery hook provided by react-query. Any guidelines, best practices on in which scenario, one should be preferred over other.
One scenario might be where we want to conditionally fetch data. So, queryClient.fetchQuery looks more natural while useQuery hook not.
Is the above logic correct? Please advise on the best practise of using one over the other