How do I derive optimistic updates?
Ask QuestionAsked 6 hours agoViewed 1.2k times
I want the upvote count to update instantly on click and reconcile with the server. Can Kovo derive the optimistic update straight from my Drizzle mutation instead of me hand-writing it?
DW
1 Answer
Kovo's compiler reads the Drizzle mutation and generates the optimistic patch for you — call deriveOptimistic on the mutation and the count moves on click, then settles to server truth when the fragment comes back.
MW