David AlonsoD
Convex Community2y ago
3 replies
David Alonso

Showing save status with optimistic update

Suppose we store the configuration of a grid in convex, and we want to use optimistic updates to show the grid layout updating instantly when users drag stuff around. How can we easily show whether their changes have been saved or not?

One way to do it is to have a flag in the query output like
isServerValue
which is set to
true
on the convex query and
false
in the optimistic update...

Does anyone have better ideas?
Was this page helpful?