Detect Convex client connection state
Is there a way I can detect there is no connection to convex on client to trigger warning?
2 Replies
I think you could "poll" the
connectionState()
on the ConvexReactClient
: https://docs.convex.dev/api/classes/react.ConvexReactClient#connectionstateClass: ConvexReactClient | Convex Developer Hub
react.ConvexReactClient
Ok I will check thanks