How I can stop trpc to make calls when alt tabbing?

No description
2 Replies
Neto5d ago
Window Focus Refetching | TanStack Query React Docs
If a user leaves your application and returns and the query data is stale, TanStack Query automatically requests fresh data for you in the background. You can disable this globally or per-query using the refetchOnWindowFocus option: Disabling Globally
Kenzo4d ago
I remember it was a simple setting, so it was not constantly fetching trpc when user focus and unfocus the screen