allenA
Convex Communityโ€ข3y agoโ€ข
21 replies
allen

Calling queries in effects

Is there any way to have a lazy query? Eg:
const myQuery = useLazyQuery(queryName);

useEffect(() => myQuery(...args), [...])


What I'm ultimately trying to do is defer invoking the query until the args satisfy some checks, and then I wish to debounce the query execution.
Was this page helpful?