How to set default options on trpcs react query wrapper
Is there a way to i.e. disable refetchOnFocus by default other than setting it on each query?
3 Replies
global configuration
Is this documented somewhere? I never would have thought to put these options here
Nvm, found it here: https://trpc.io/docs/nextjs/setup#createtrpcnext-options
Set up with Next.js | tRPC
Recommended file structure