trpc/packages/react-query/src/shared/hooks/createHooksInternal.tsx
queryClient.getMutationDefaults
function useMutation( // FIXME: this should only be a tuple path in next major path: string | [string], opts?: UseTRPCMutationOptions<unknown, TError, unknown, unknown>, ): UseTRPCMutationResult<unknown, TError, unknown, unknown> { const { client } = useContext(); const queryClient = useQueryClient({ context: ReactQueryContext }); const actualPath = Array.isArray(path) ? path[0] : path; const defaultOpts = queryClient.getMutationDefaults([ actualPath.split('.'), ]);