Why using QueryClient.prefetchQuery instead of useQuery for caching in react-query ?
I don't see any valable use case. If I want to prefetch, I just use useQuery at the load of the app without using returned values and when I will using it another time somewhere else, I will get the cache first. At least, this is how I see things.
But I think I'm missing something. Maybe SRR related.