ZwyxZ
Convex Community13mo ago
3 replies
Zwyx

How to cancel a mutation when network is down

Take the convex-tutorial (the chat app), run it, use your dev tools to make the app Offline, type a message in the app, and hit Enter.

Nothing will happen until the app comes back online. Would there be a way to cancel the mutation after 30 seconds, so we can display an error message to the user, instead of leaving them hanging for a indefinite time?

(Also, just letting you know: I notice a high CPU consumption during the whole time the app is offline.)
Was this page helpful?