TanStackT
TanStack4mo ago
4 replies
ill-bronze

Query client in loader

The docs say that if you want more control over caching and garbage collecting, we need to use TenStack Query client in loader.

But further in documentation it says that TenStack Query client is created on every page request (on the server side) so users get their own data.

How can I use the shared caching/deduping between routes ?
CleanShot_2025-10-05_at_17.47.192x.png
Was this page helpful?