M ZeeshanM
Convex Community16mo ago
2 replies
M Zeeshan

Disable useQuery hook

Hello, I'm experiencing an issue with the Convex useQuery hook. Is it possible to disable it entirely? For instance, I've tried:
const disabled= ///////

const results = useQuery(api.hire_requests.notifications, { disabled });

Currently, I'm handling this by checking the 'disabled' argument and returning if it's true. However, I'm wondering if there's a native or more idiomatic way to achieve this in Convex?"
Was this page helpful?