yurkomik
yurkomik4w ago

Are there any plans for optimistic updates by default?

Hello community. I have just migrated my app from Firebase and see that all mutations are pessimistic by default in convex. This was not expected. It breaks UX in many places, like drag and drop and even droplists. Is there a reason for the default "pessimism" in Convex philosophy? Is there, by any chance, a plan to have configuration in the future to make all mutations optimistic by default? I love Convex and feel it's a dream product, but the requirements for verbose optimism make me think of going back to Firebase, which is optimistic, reactive, and offline by default.
5 Replies
Convex Bot
Convex Bot4w ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!
jamwt
jamwt4w ago
hi @yurkomik ! we plan on shipping better optimistic update support in the future, as part of a "local sync engine" we're starting on this month. however, because convex uses ACID transactions for its mutations, unfortunately it's impossible to make all of convex's server mutations automatically optimistic
yurkomik
yurkomikOP4w ago
thanks! that's great news. You are in the great place to dominate the market if you do it. Do you have any timeline for when we can expect it released?
jamwt
jamwt4w ago
we'll send a product update soon. I know an engineer we just hired is going to start working on it in the next few weeks. we'll shoot to get out incremental progress as we get it for everyone to try out
yurkomik
yurkomikOP3w ago
Thanks, Jamie. I'll be checking updates every day. We still have a few months to finish the app so will try to skip withOptimisticUpdate() where it's not critical.

Did you find this page helpful?