conradkohC
Convex Community2y ago
49 replies
conradkoh

React useQuery not updating on reconnect

I am using Convex on React Native with expo. The issue I am facing is that when the Convex client connection state comes back to being "ready" - aka connection is re-established, old queries are not updated.

Is there a recommendation on how to resolve this? Considering the useQuery hook returns only the results and has to
refetch
function, I am unsure of how to proceed without reloading the entire screen.

Ideally, the queries should refetch events that occurred since the latest successful update.
Was this page helpful?