tRPCttRPC
Powered by
halfmoonH
tRPC•3y 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
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

conditionally fetching data with a useQuery
PeformPPeform / ❓-help
2y ago
Usage of useQuery after pageload?
peternovakPpeternovak / ❓-help
3y ago
useQuery hook modify data on fetch.
MajMMaj / ❓-help
3y ago