Zwyx
CCConvex Community
•Created by Zwyx on 1/10/2025 in #support-community
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.)4 replies