STLS
Convex Community4w ago
24 replies
STL

Simulate query latency

I'd like to simulate Convex being slow so I can test making my UI more responsive with optimistic updates. Claude suggests adding a sleep to my mutation, which seems reasonable (as long as I stay below the documented limit of 1 second for mutation time). Is there any better way to insert artificial delays?
Was this page helpful?