How do I derive optimistic updates?

Ask Question
Asked 6 hours agoViewed 1.2k times
3

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?

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
    answered 5 hours agoMarcus Webb7,334

Your Answer