bubblez
bubblez2w ago

Chaining optimistic updates?

I'm building a block based outliner note-taking app. Each bullet point is an entry in the blocks table. Hitting enter creates a new block and hitting tab indents it. Both block creation and indentation are convex mutations (which feels right to me, but happy to be corrected). However I'm having trouble with optimistic updates, especially chained ones, e.g. if I rapidly hit enter then tab. I suspect the reason is that the indent mutation takes a block id, and the client doesn't know what the block id should be... Is there good support for this sort of thing?
2 Replies
Convex Bot
Convex Bot2w 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!
bubblez
bubblezOP2w ago
Ok I see that this is a duplicate of https://discord.com/channels/1019350475847499849/1287459186749345812 Would love that feature

Did you find this page helpful?