David Alonso
David Alonso5mo ago

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?
2 Replies
jamwt
jamwt5mo ago
hey, check out this conversation: https://discord.com/channels/1019350475847499849/1019350478817079338/1275529453786628106 @erquhart provided one way he solves this
David Alonso
David AlonsoOP5mo ago
thanks @jamwt 🙏

Did you find this page helpful?