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

No description
2 Replies
Neto
Neto7mo 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
Kenzo
KenzoOP7mo ago
I remember it was a simple setting, so it was not constantly fetching trpc when user focus and unfocus the screen

Did you find this page helpful?