useQuery always fetching when active on page
Hi, I was call my procedure like this, using NextJs (page directory)
const { isLoading, isError, isSuccess, data } = api.company.getAllAttendanceSettings.useQuery();
but the log always running.. how to prevent this query to always fetching?
thanks
2 Replies
you can disable
refetchOnMount
and refreshOnReconnect
in the trpc/useQuery optionsoh, okay thanks