T
tRPC

Configuration help

Configuration help

TLCtribalized lobotomy champion8/28/2023
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 refetchOnWindowFocus to false. How can I achieve this in tRPC? Thank you for your help.
TLCtribalized lobotomy champion8/31/2023
I found this: https://github.com/trpc/trpc/issues/3684 But I am confused on how to pursue this in a websocket tRPC context. Explicitly specifying logic on useQuery({}, { refetchOnWindowFocus: false, }) is sufficient enough.

Looking for more? Join the community!

T
tRPC

Configuration help

Join Server