Starlord
Starlord4w ago

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
RJ
RJ4w ago
I think you could "poll" the connectionState() on the ConvexReactClient: https://docs.convex.dev/api/classes/react.ConvexReactClient#connectionstate
Starlord
StarlordOP4w ago
Ok I will check thanks

Did you find this page helpful?