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.

clarity fix in optimistic updates section of cache-updates.md (#3512)

authored by

Greg Westneat and committed by
GitHub
f06ef349 badc8136

+2 -2
+2 -2
docs/graphcache/cache-updates.md
··· 493 493 494 494 If we know what result a mutation may return, why wait for the GraphQL API to fulfill our mutations? 495 495 496 - Additionally to the `updates` configuration we may also pass an `optimistic` option to the 497 - `cacheExchange` which is a factory function using, which we can create a "virtual" result for a 496 + In addition to the `updates` configuration, we can also pass an `optimistic` option to the 497 + `cacheExchange`. This option is a factory function that allows us to create a "virtual" result for a 498 498 mutation. This temporary result can be applied immediately to the cache to give our users the 499 499 illusion that mutations were executed immediately, which is a great method to reduce waiting time 500 500 and to make our apps feel snappier.