David AlonsoD
Convex Communityโ€ข16mo agoโ€ข
16 replies
David Alonso

Setting `_id` when creating documents with optimistic update

We absolutely love optimistic updates and use them heavily on our app. There's however some places where we can't use them because we would require Convex to create a document with an id that we pass it which is equal to the id of the document created optimistically.

In our app, when you create a page, a document gets created and we navigate the user to pages/<doc_id>
Doing this optimistically would break atm...
Was this page helpful?