#How to cancel a mutation when network is down

3 messages · Page 1 of 1 (latest)

teal pike
#

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.)

sick micaBOT
#

Thanks for posting in #1088161997662724167.
Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets.

    - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.)
    - Use [search.convex.dev](https://search.convex.dev) to search Docs, Stack, and Discord all at once.
    - Additionally, you can post your questions in the Convex Community's #1228095053885476985 channel to receive a response from AI.
    - Avoid tagging staff unless specifically instructed.

    Thank you!
turbid halo