Skip to content

Commit f06ef34

Browse files
clarity fix in optimistic updates section of cache-updates.md (#3512)
1 parent badc813 commit f06ef34

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/graphcache/cache-updates.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -493,8 +493,8 @@ invalidate only these fields, which causes all queries using these listing field
493493

494494
If we know what result a mutation may return, why wait for the GraphQL API to fulfill our mutations?
495495

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
498498
mutation. This temporary result can be applied immediately to the cache to give our users the
499499
illusion that mutations were executed immediately, which is a great method to reduce waiting time
500500
and to make our apps feel snappier.

0 commit comments

Comments
 (0)