mennov_M
Convex Community13mo ago
7 replies
mennov_

skip - works in dev not prod

It feels simple, but I can seem to solve it. I use skip if the userId isn’t defined. Works in dev, errors in prod - seems to be calling the function even thought skip is defined.

Simplified it down to:
const user = useQuery(api.users.getUser, “skip”);

It works against dev, but when built and pushed to prod, “skip” no longer seems to apply. (And I’ve used skip elsewhere and it does seem to work).

Latest 1.18.2 convex/react library.
Was this page helpful?