erquhartE
Convex Community3y ago
2 replies
erquhart

Error handling with useQuery

Try/catch makes sense for handling ConvexError with mutations, but how does it work with useQuery()?

The docs mention that it works with query/mutation/action, but there's only an example for mutations: https://docs.convex.dev/functions/error-handling/application-errors#handling-application-errors-on-the-client
If you have expected ways your functions might fail, you can either return
Application Errors | Convex Developer Hub
Was this page helpful?