-
I am writing todo-list-like app that supposed to work offline. I have mutation where I toggle todo-item (boolean flag). While offline I can toggle it several times, and then when app go online result is unpredictable because all mutations run in parallel. Is there any way to control that behaviour: run sequentially or ideally have ability to discard mutations based on queue state? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
We currently don't have a way to do this. The reason is a bit more "obscure" so to speak, but generally, we anticipated that in several cases there'd be mutations that would have to be run in series, regardless of the offline queuing or anything else. |
Beta Was this translation helpful? Give feedback.
-
@kitten Any more thoughts on this one? |
Beta Was this translation helpful? Give feedback.
We currently don't have a way to do this. The reason is a bit more "obscure" so to speak, but generally, we anticipated that in several cases there'd be mutations that would have to be run in series, regardless of the offline queuing or anything else.
However, that means there should be an exchange that queues "conflicting" mutations. But we have never really gotten around to implementing one 😅