Prevent trpc refetching
Does anyone have an idea how I prevent trpc refetching, current I have following queries in a page:
Which keeps refetching if I focus on the application.
I went through the docs https://tanstack.com/query/v4/docs/react/guides/window-focus-refetching
And tried:
But I get this:
Which keeps refetching if I focus on the application.
I went through the docs https://tanstack.com/query/v4/docs/react/guides/window-focus-refetching
And tried:
But I get this:
If a user leaves your application and returns to stale data, React Query automatically requests fresh data for you in the background. You can disable this globally or per-query using the refetchOnWindowFocus option:
Disabling Globally
Disabling Globally

