Configuration help
Hello!
I want to apply the following configuration on the client:
https://tanstack.com/query/v4/docs/react/guides/window-focus-refetching
Which is basically setting
Thank you for your help.
I want to apply the following configuration on the client:
https://tanstack.com/query/v4/docs/react/guides/window-focus-refetching
Which is basically setting
refetchOnWindowFocus to false. How can I achieve this in tRPC?Thank you for your help.
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
Disabling Globally
