[Cloud Firestone] Offline changes of one field (list) by two partys can not be merged #3578
-
I know that Cloud Firestone already works offline. Some Details about my app: My app is implemented like a to-do app where one to-do list is one document (the lists are shared and can be edited by multiple users). This document then contains a list of todos. Here is the problem: When two users without internet connection add a todo, we get a race condition. If I use the Now you will say: "Well then use a transaction, that is made to prevent race conditions like that." The problem here is that Transactions just crash the app when they are executed offline. Is there a solution for this? Is it possible to merge both lists in I think this is a very common problem so I am confused that I can not find any answers myself. Edit: here is a more detailed description of the problem |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Have you tried using batched writes? Those work offline. |
Beta Was this translation helpful? Give feedback.
Have you tried using batched writes? Those work offline.