We'll learn about exchanges in urql and how urql passes a query through the dedupExchange
, cacheExchange
, and fetchExchanged
.
We'll replace the default cacheExchange
with GraphCache
which allows schema awareness. The result is that we'll be able to return partial data from the cache while more data is fetched
Install GraphCache and use the schema awareness feature to return partial data from cache.
Resources:
Checkpoint: Refactor story and use a story details fragment