Trying to use React Query options on trpc useQuery, but it only works with inputs (two args)
Original message was deleted
trpc.restaurant.getAll.useQuery() is basically equivalent to trpc.restaurant.getAll.useQuery(undefined); the procedure sees input as undefined in both cases. So, you can put undefined for the first argument:trpc.restaurant.getAll.useQuery()trpc.restaurant.getAll.useQuery(undefined)const { data, isLoading } = trpc.restaurant.getAll.useQuery(undefined, {
// react query options in here
enabled: false
initialData: 'initialData'
})