halfmoonH
tRPC3y ago
2 replies
halfmoon

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
image.png
Was this page helpful?