MugetsuM
tRPC2mo ago
3 replies
Mugetsu

abortOnUnmount old Query vs new Query

@trpc/next@trpc/clientSolved@trpc/react
Im moving to the recommmended queryOptions things.
Is there a global abortOnUnmount option in this setup??

On the old one I just did in the reactclient creation

//old
export const api = createTRPCReact<AppRouter>({ abortOnUnmount: false });

//new
export const apiNew = createTRPCOptionsProxy<AppRouter>({
  client: trpcClient,
  queryClient: getQueryClient(),
});
Was this page helpful?