callmebC
Convex Community6mo ago
2 replies
callmeb

useQueryWithStatus from convex-helpers does not catch Validation Errors

I'm trying to catch all the errors given in a useQuery call but when:

const params = useParams()
const id = params.id as Id<"practices">

const {
data: question,
isPending,
isError,
} = useQueryWithStatus(api.example.byId, {
id,
})

if the id does not match

args: {
id: zid("table"),
},

instead of having isError true, an error is raised in the frontend. is this supposed to happen?
Was this page helpful?