theodor349T
Convex Community4d ago
2 replies
theodor349

Is it possible to manually trigger a Convex reconnect on tab focus?

I’m running into an issue with a Next.js (TypeScript) app using Convex v1.26.2.

When a user switches to another browser tab, the app gets paused and the client connection to Convex is dropped. The client then tries to reconnect using exponential backoff.

If the user returns to the tab after a long time (e.g. hours), the client may still be in a long backoff window and won’t reconnect immediately.

Is there a way to manually trigger or force a reconnect to Convex — for example when the tab regains focus or the document becomes visible again?
Was this page helpful?