Rollback batch optimistic update #2570
-
I have several queries that have the same root : During the mutation, I would like to optimistically update all those data, which may or may not hold a reference to the mutated element.
To update the data I simply call Right now I have found a workaround, it's more of a hack than anything else, but it works. During the the optimistic update Do you guys have come up with a better solution ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hm, I don't think that's true. so An Array of tuples, each having the exact query key and their data, for this exact reason. |
Beta Was this translation helpful? Give feedback.
Hm, I don't think that's true.
getQueriesData
returns:[QueryKey, TData][]
so An Array of tuples, each having the exact query key and their data, for this exact reason.