routerWithQueryClient: Invalidating queryClient cache
Problem:
I have a loader that prefetches data on the server:
The server fetch works, and I assume the cache is hydrated on the client automatically.
Later, on the client, after updating member, I try to invalidate the cached query:
Core question:
Is useQueryClient the correct way to access the query client that routerWithQueryClient provides, or is there a better way to get the same instance that's being used by the router?
(when I navigate back to that original page that fetches member/org, its returning stale data instead of refetching first)