Can conflicting/related mutations be consolidated? #5083
Replies: 1 comment
-
It's an interesting request. Currently, we just execute all paused mutations, one after the other, via query/packages/query-core/src/mutationCache.ts Lines 163 to 180 in aa94bdd I thought about adding a So I think what you'd have to do is hook into the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm adopting an offline-first approach on my website with optimistic updates everywhere where it's possible.
I'm finding that when offline, many mutations can be created that could be reduced to a much smaller number of mutations, because they are just updating the same value. I'm finding two patterns of types of mutations that would be great to be able to join into fewer calls to the backend:
Is this possible?
Beta Was this translation helpful? Give feedback.
All reactions