Timothy Kasasa
CCConvex Community
•Created by Timothy Kasasa on 1/14/2025 in #support-community
Offline Mutations
Hello! I was experimenting with the convex-next.js sample and noticed something: when I switch Chrome to offline mode and send a few messages, the mutation doesn’t throw any errors. When I reconnect to the network, the messages are sent as expected.
I understand from the docs that Convex automatically saves these messages. However, is there a way to know if my mutation has been cached for later/retry? This would help prevent users from accidentally triggering the same action/mutation multiple times while offline or experiencing bad network.
Sorry if i missed it in the docs, but I can't seem to find any recommendations.
5 replies