Timothy KasasaT
Convex Community13mo ago
4 replies
Timothy Kasasa

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.
Was this page helpful?