Mirror: The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

docs: Fix typo in cache-updates doc about optimistic updates (#2963)

authored by

Romain Trotard and committed by
GitHub
3fe3cd14 2db32951

+4 -4
+4 -4
docs/graphcache/cache-updates.md
··· 478 478 favoriteTodo(args, cache, info) { 479 479 return { 480 480 __typename: 'Todo', 481 - id: variables.id, 481 + id: args.id, 482 482 favorite: true, 483 483 }; 484 484 }, ··· 504 504 ```js 505 505 const cache = cacheExchange({ 506 506 optimistic: { 507 - favoriteTodo(variables, cache, info) { 507 + favoriteTodo(args, cache, info) { 508 508 return { 509 509 __typename: 'Todo', 510 - id: variables.id, 511 - favorite(args, cache, info) { 510 + id: args.id, 511 + favorite(_args, cache, info) { 512 512 return true; 513 513 }, 514 514 },