Thanks for letting us know freeze992
Thanks for letting us know, @Dan Mercer. If it's something you can change without affecting users, could you try setting the auth refresh time to something very short to see if this happens faster?
3 Replies
this is an issue we believe we've fixed, so curious if you're seeing a new issue or our fix didn't take
The connection status thing sound great, we've talked that before. Are you sending regular mutations to check the connection status, or waiting until the user sends one to update the status indicator?
The latter - whenever a mutation starts, I push an entry onto a "pending mutations" list, and then remove the entry when the mutation resolves. Then I show the status indicator whenever the list is nonempty
Good idea, I'll try that and see if that increases the frequency
Orthogonal to your actual problem, but there's actually a
.connectionState
method on ConvexReactClient
(https://docs.convex.dev/api/classes/react.ConvexReactClient#connectionstate) that might be helpful for building a status indicator (sounds similar to what you're already doing)
The docs I linked seem a little broken but the type of ConnectionState
is the following:
Class: ConvexReactClient | Convex Developer Hub
react.ConvexReactClient