Tell if mutations are pending
Is there a way to tell if mutations are pending? I noticed the Convex browser client seems to register a
beforeunload
handler to warn the user if there are mutations pending, and it'd be really cool if I could show an indicator in my UI as well3 Replies
You can get close to this do this by watching the promises returned by the mutations: once those resolve, that info is saved
e.g.
Ooo that makes sense! Thanks!