backpack1098B
Convex Community3y ago
11 replies
backpack1098

configure ConvexReactClient to skip queries when input is undefined by default?

Hi team! Is it possible to enable "skip" when doing useQuery in the client? currently im adding a "isLoading" everywhere when i do useQuery.
const customer = useQuery(
api.customerFuncs.getCustomer,
isLoading
    ? "skip"
    : {
        id: customerId,
    }
)

i've checked the docs and dont see anything related. thanks!
Was this page helpful?