Display Partial Data From Cache with GraphCache

Share this video with your friends

Send Tweet

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:

  • GraphCache: https://formidable.com/open-source/urql/docs/graphcache/

Checkpoint: Refactor story and use a story details fragment