Why should I use QueryClient.prefetchQuery instead of useQuery for caching in React-Query?
I don't see any valuable use case. If I want to prefetch, I could just use useQuery when the app is loaded without actually using the fetched values. When I use it somewhere else, I would get the cached result from the previous useQuery. At least this is how I see things.
But I think I'm missing something. Maybe SSR related.